Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009851/0.0009849, allocations: 96.11 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00116/0.001161, allocations: 200.8 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.475/1.475, allocations: 227.3 MB / 245.9 MB, free: 10.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002987/0.000299, allocations: 11.98 kB / 306.7 MB, free: 1.281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.1372, allocations: 51.49 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003309/0.1405, allocations: 2.381 MB / 360.6 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001217/0.1418, allocations: 0.7523 MB / 361.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001362/0.1419, allocations: 4 kB / 361.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.412e-05/0.142, allocations: 31.75 kB / 361.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000233/0.1422, allocations: 123.6 kB / 361.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002487/0.1425, allocations: 71.86 kB / 361.5 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003103/0.1428, allocations: 259.5 kB / 361.8 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002451/0.143, allocations: 113.8 kB / 361.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002072/0.1433, allocations: 119.6 kB / 362 MB, free: 9.926 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001771/0.1435, allocations: 135.4 kB / 362.2 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.155e-05/0.1435, allocations: 16 kB / 362.2 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.146e-05/0.1436, allocations: 23.98 kB / 362.2 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.909e-05/0.1436, allocations: 47.83 kB / 362.2 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.62e-05/0.1437, allocations: 85.52 kB / 362.3 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003155/0.144, allocations: 319.3 kB / 362.6 MB, free: 9.305 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.1441, allocations: 0 / 362.6 MB, free: 9.305 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1441, allocations: 7.938 kB / 362.7 MB, free: 9.297 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.752e-06/0.1441, allocations: 0 / 362.7 MB, free: 9.297 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.0009652/0.145, allocations: 0.5699 MB / 363.2 MB, free: 8.676 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.1451, allocations: 12.03 kB / 363.2 MB, free: 8.664 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.92e-05/0.1452, allocations: 62.53 kB / 363.3 MB, free: 8.594 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001871/0.1454, allocations: 43.61 kB / 363.3 MB, free: 8.551 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003613/0.1458, allocations: 278.4 kB / 363.6 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.741e-05/0.1458, allocations: 16.56 kB / 363.6 MB, free: 8.223 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.83e-05/0.1458, allocations: 27.95 kB / 363.7 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004739/0.1463, allocations: 288.5 kB / 363.9 MB, free: 7.898 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.1463, allocations: 0 / 363.9 MB, free: 7.898 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.818e-05/0.1464, allocations: 15.94 kB / 363.9 MB, free: 7.883 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.1464, allocations: 4 kB / 364 MB, free: 7.879 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003805/0.1468, allocations: 206.2 kB / 364.2 MB, free: 7.676 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001594/0.1484, allocations: 1.164 MB / 365.3 MB, free: 6.434 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004726/0.1489, allocations: 222.4 kB / 365.5 MB, free: 6.211 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.928e-05/0.1489, allocations: 192 / 365.5 MB, free: 6.211 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003046/0.1492, allocations: 175.7 kB / 365.7 MB, free: 6.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.182e-06/0.1492, allocations: 0 / 365.7 MB, free: 6.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001329/0.1505, allocations: 0.5079 MB / 366.2 MB, free: 5.484 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.506e-05/0.1506, allocations: 110.8 kB / 366.3 MB, free: 5.352 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002589/0.1509, allocations: 244.9 kB / 366.6 MB, free: 5.105 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.439e-05/0.1509, allocations: 37.69 kB / 366.6 MB, free: 5.062 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001318/0.1511, allocations: 164.4 kB / 366.8 MB, free: 4.898 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.631e-05/0.1512, allocations: 74.98 kB / 366.8 MB, free: 4.824 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.925e-05/0.1512, allocations: 8 kB / 366.8 MB, free: 4.816 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.1513, allocations: 334.8 kB / 367.2 MB, free: 4.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001527/0.1515, allocations: 75.97 kB / 367.2 MB, free: 4.406 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001953/0.1517, allocations: 116.5 kB / 367.4 MB, free: 4.273 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001596/0.1519, allocations: 89.12 kB / 367.4 MB, free: 4.188 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1519, allocations: 0 / 367.4 MB, free: 4.188 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000498/0.1524, allocations: 290.7 kB / 367.7 MB, free: 3.898 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.1524, allocations: 4 kB / 367.7 MB, free: 3.895 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.1524, allocations: 4 kB / 367.7 MB, free: 3.891 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003501/0.1528, allocations: 84.86 kB / 367.8 MB, free: 3.805 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001371/0.1529, allocations: 35.92 kB / 367.9 MB, free: 3.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002184/0.1551, allocations: 1.967 MB / 369.8 MB, free: 1.668 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001999/0.1553, allocations: 35.84 kB / 369.9 MB, free: 1.633 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.631e-05/0.1553, allocations: 12.06 kB / 369.9 MB, free: 1.621 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0001517/0.1555, allocations: 154 kB / 370 MB, free: 1.461 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.954e-05/0.1556, allocations: 31.67 kB / 370 MB, free: 1.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.717e-05/0.1556, allocations: 30.17 kB / 370.1 MB, free: 1.398 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.1556, allocations: 4 kB / 370.1 MB, free: 1.395 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.783e-06/0.1556, allocations: 0 / 370.1 MB, free: 1.395 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.1556, allocations: 0 / 370.1 MB, free: 1.395 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003347/0.156, allocations: 357.3 kB / 370.4 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.156, allocations: 0 / 370.4 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001191/0.1561, allocations: 23.98 kB / 370.5 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002319/0.1564, allocations: 84.75 kB / 370.5 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.267e-05/0.1564, allocations: 19.94 kB / 370.6 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2581/0.4145, allocations: 1.948 MB / 372.5 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.4145, allocations: 2.094 kB / 372.5 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001229/0.4158, allocations: 421.8 kB / 372.9 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001846/0.416, allocations: 117.8 kB / 373 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.857e-05/0.416, allocations: 12.67 kB / 373 MB, free: 18.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002035/0.4162, allocations: 25.72 kB / 373.1 MB, free: 18.74 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001793/0.4164, allocations: 39.19 kB / 373.1 MB, free: 18.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.178e-05/0.4165, allocations: 5.016 kB / 373.1 MB, free: 18.74 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002592/0.4167, allocations: 174 kB / 373.3 MB, free: 18.66 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4167, allocations: 0 / 373.3 MB, free: 18.66 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005643/0.4173, allocations: 98.62 kB / 373.4 MB, free: 18.66 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 2 (idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.001272/0.4186, allocations: 0.9401 MB / 374.3 MB, free: 18.06 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009599/0.4195, allocations: 361.5 kB / 374.7 MB, free: 17.95 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.4196, allocations: 0 / 374.7 MB, free: 17.95 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005688/0.4201, allocations: 271.9 kB / 374.9 MB, free: 17.8 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000422/0.4206, allocations: 54.16 kB / 375 MB, free: 17.78 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003339/0.4239, allocations: 1.93 MB / 376.9 MB, free: 16.58 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003241/0.4243, allocations: 0.7705 MB / 377.7 MB, free: 15.88 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001289/0.4244, allocations: 26.23 kB / 377.7 MB, free: 15.88 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001271/0.4245, allocations: 85.25 kB / 377.8 MB, free: 15.81 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.4245, allocations: 3.938 kB / 377.8 MB, free: 15.8 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02398/0.4485, allocations: 6.662 MB / 384.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001597/0.4487, allocations: 212.8 kB / 384.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.939/2.388, allocations: 0 / 384.7 MB, free: 14.48 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat does not exist to compare? outputFormat=mat