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.001197/0.001197, allocations: 115.2 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001463/0.001463, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.466/1.466, allocations: 227.4 MB / 246.4 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 63.98 kB / 306.6 MB, free: 0.8164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1106, allocations: 50.53 MB / 357.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004676/0.1153, allocations: 2.976 MB / 360.1 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00202/0.1174, allocations: 0.7869 MB / 360.9 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003339/0.1178, allocations: 8 kB / 360.9 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002383/0.118, allocations: 39.69 kB / 360.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003391/0.1184, allocations: 79.31 kB / 361 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004658/0.1189, allocations: 111.8 kB / 361.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006111/0.1195, allocations: 402.4 kB / 361.5 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002845/0.1198, allocations: 135.2 kB / 361.6 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003475/0.1202, allocations: 155.4 kB / 361.8 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002784/0.1204, allocations: 163.3 kB / 361.9 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.461e-05/0.1205, allocations: 36 kB / 362 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001141/0.1206, allocations: 43.98 kB / 362 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.231e-05/0.1207, allocations: 75.7 kB / 362.1 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002342/0.121, allocations: 179.2 kB / 362.2 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005456/0.1215, allocations: 434.8 kB / 362.7 MB, free: 8.676 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.795e-06/0.1215, allocations: 3.938 kB / 362.7 MB, free: 8.672 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.885e-06/0.1216, allocations: 0 / 362.7 MB, free: 8.672 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.85e-05/0.1216, allocations: 0 / 362.7 MB, free: 8.672 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.0014/0.123, allocations: 0.6232 MB / 363.3 MB, free: 8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.682e-05/0.1231, allocations: 8.031 kB / 363.3 MB, free: 7.992 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.197e-05/0.1232, allocations: 58.73 kB / 363.4 MB, free: 7.926 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002533/0.1234, allocations: 48.55 kB / 363.4 MB, free: 7.879 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004488/0.1239, allocations: 288.7 kB / 363.7 MB, free: 7.555 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.507e-05/0.1239, allocations: 20.94 kB / 363.7 MB, free: 7.531 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.77e-05/0.124, allocations: 24.38 kB / 363.7 MB, free: 7.508 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005876/0.1246, allocations: 296.5 kB / 364 MB, free: 7.207 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.1246, allocations: 0 / 364 MB, free: 7.207 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.331e-05/0.1246, allocations: 8 kB / 364 MB, free: 7.199 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.1246, allocations: 12 kB / 364 MB, free: 7.188 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004689/0.1251, allocations: 202.2 kB / 364.2 MB, free: 6.988 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001924/0.1271, allocations: 1.16 MB / 365.4 MB, free: 5.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005179/0.1276, allocations: 214.6 kB / 365.6 MB, free: 5.531 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003088/0.1279, allocations: 144.8 kB / 365.8 MB, free: 5.387 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.707e-05/0.1279, allocations: 4 kB / 365.8 MB, free: 5.383 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003716/0.1283, allocations: 169.7 kB / 365.9 MB, free: 5.195 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.693e-06/0.1283, allocations: 7.938 kB / 365.9 MB, free: 5.188 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001474/0.1298, allocations: 0.5068 MB / 366.4 MB, free: 4.652 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.169e-05/0.1299, allocations: 140.5 kB / 366.6 MB, free: 4.484 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002776/0.1302, allocations: 241 kB / 366.8 MB, free: 4.238 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.217e-05/0.1303, allocations: 29.7 kB / 366.8 MB, free: 4.203 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001481/0.1304, allocations: 172.3 kB / 367 MB, free: 4.031 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.099e-05/0.1305, allocations: 71.08 kB / 367.1 MB, free: 3.961 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001093/0.1306, allocations: 53.61 kB / 367.1 MB, free: 3.902 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.1308, allocations: 330.8 kB / 367.5 MB, free: 3.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001675/0.1309, allocations: 75.98 kB / 367.5 MB, free: 3.496 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002027/0.1312, allocations: 129.1 kB / 367.7 MB, free: 3.352 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00031/0.1315, allocations: 173.1 kB / 367.8 MB, free: 3.172 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1315, allocations: 0 / 367.8 MB, free: 3.172 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005328/0.132, allocations: 290 kB / 368.1 MB, free: 2.879 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.1321, allocations: 7.938 kB / 368.1 MB, free: 2.871 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.1321, allocations: 4 kB / 368.1 MB, free: 2.867 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003594/0.1324, allocations: 92.88 kB / 368.2 MB, free: 2.773 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001454/0.1326, allocations: 35.92 kB / 368.2 MB, free: 2.738 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002494/0.1351, allocations: 2.135 MB / 370.4 MB, free: 472 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002266/0.1353, allocations: 31.77 kB / 370.4 MB, free: 440 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.216e-05/0.1354, allocations: 15.94 kB / 370.4 MB, free: 424 kB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,idealTriac.fire1,idealTriac.idealThyristor1.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001838/0.1356, allocations: 145.8 kB / 370.6 MB, free: 268 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.27e-05/0.1356, allocations: 27.66 kB / 370.6 MB, free: 240 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.279e-05/0.1357, allocations: 30.28 kB / 370.6 MB, free: 208 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.1357, allocations: 8 kB / 370.6 MB, free: 200 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.1357, allocations: 4 kB / 370.6 MB, free: 196 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.1357, allocations: 0 / 370.6 MB, free: 196 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2066/0.3423, allocations: 0.7648 MB / 371.4 MB, free: 19.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.3424, allocations: 1.203 kB / 371.4 MB, free: 19.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001299/0.3425, allocations: 24.78 kB / 371.4 MB, free: 19.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002973/0.3428, allocations: 88.78 kB / 371.5 MB, free: 19.94 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.174e-05/0.3429, allocations: 6.484 kB / 371.5 MB, free: 19.94 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002116/0.345, allocations: 2.144 MB / 373.7 MB, free: 18.47 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.345, allocations: 0.8438 kB / 373.7 MB, free: 18.47 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006641/0.3457, allocations: 458.2 kB / 374.1 MB, free: 18.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001032/0.3458, allocations: 119.8 kB / 374.2 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.217e-05/0.3458, allocations: 10.89 kB / 374.2 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002043/0.346, allocations: 22 kB / 374.3 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/0.3462, allocations: 30.16 kB / 374.3 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.777e-05/0.3462, allocations: 9.453 kB / 374.3 MB, free: 18.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001816/0.3464, allocations: 174.9 kB / 374.5 MB, free: 18.04 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3464, allocations: 0 / 374.5 MB, free: 18.04 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004953/0.3469, allocations: 97.05 kB / 374.6 MB, free: 18.03 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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.idealThyristor1.off,idealTriac.idealThyristor.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000901/0.3478, allocations: 0.9915 MB / 375.6 MB, free: 17.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007426/0.3486, allocations: 370 kB / 375.9 MB, free: 17.02 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.157e-06/0.3486, allocations: 0.5 kB / 375.9 MB, free: 17.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000426/0.349, allocations: 262.5 kB / 376.2 MB, free: 16.85 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000445/0.3495, allocations: 63.02 kB / 376.2 MB, free: 16.84 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003454/0.3529, allocations: 2.887 MB / 379.1 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002555/0.3532, allocations: 0.7639 MB / 379.9 MB, free: 14.15 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001201/0.3533, allocations: 19.58 kB / 379.9 MB, free: 14.15 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001112/0.3534, allocations: 82.88 kB / 380 MB, free: 14.09 MB / 302.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3534, allocations: 0 / 380 MB, free: 14.09 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02676/0.3802, allocations: 7.244 MB / 387.2 MB, free: 12.63 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001563/0.3804, allocations: 230.9 kB / 387.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.116/2.496, allocations: 6.891 kB / 387.5 MB, free: 12.38 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/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) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches