Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001428/0.001428, allocations: 92.75 kB / 16.65 MB, free: 6.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001551/0.001551, allocations: 184.2 kB / 17.57 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.334/1.334, allocations: 223.3 MB / 241.6 MB, free: 14.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002952/0.0002952, allocations: 4 kB / 301.5 MB, free: 5.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1037, allocations: 50.41 MB / 351.9 MB, free: 3.375 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003253/0.107, allocations: 2.596 MB / 354.5 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001404/0.1085, allocations: 0.7091 MB / 355.2 MB, free: 48 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002977/0.1088, allocations: 4 kB / 355.2 MB, free: 44 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002047/0.109, allocations: 35.69 kB / 355.3 MB, free: 8 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003748/0.1094, allocations: 83.42 kB / 355.4 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003646/0.1098, allocations: 91.88 kB / 355.5 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005117/0.1103, allocations: 382.2 kB / 355.8 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002716/0.1106, allocations: 115.9 kB / 355.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000262/0.1109, allocations: 123.4 kB / 356.1 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002501/0.1111, allocations: 131.4 kB / 356.2 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.88e-05/0.1112, allocations: 16 kB / 356.2 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.225e-05/0.1113, allocations: 16 kB / 356.2 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.127e-05/0.1113, allocations: 55.7 kB / 356.3 MB, free: 15 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001892/0.1115, allocations: 176.9 kB / 356.4 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003698/0.1119, allocations: 402.7 kB / 356.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1119, allocations: 0 / 356.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.497e-06/0.1119, allocations: 4 kB / 356.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.392e-05/0.112, allocations: 4 kB / 356.8 MB, free: 14.42 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.001034/0.113, allocations: 0.5662 MB / 357.4 MB, free: 13.8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.113, allocations: 12.03 kB / 357.4 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.998e-05/0.1132, allocations: 62.67 kB / 357.5 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.728e-05/0.1132, allocations: 36.55 kB / 357.5 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003695/0.1136, allocations: 279.6 kB / 357.8 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.285e-05/0.1137, allocations: 20.94 kB / 357.8 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.171e-05/0.1137, allocations: 24.38 kB / 357.8 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005616/0.1143, allocations: 300.6 kB / 358.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.1143, allocations: 0 / 358.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.104e-05/0.1143, allocations: 12 kB / 358.1 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.397e-06/0.1144, allocations: 4 kB / 358.1 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004039/0.1148, allocations: 210.1 kB / 358.4 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001703/0.1165, allocations: 1.168 MB / 359.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000554/0.117, allocations: 226.6 kB / 359.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003606/0.1174, allocations: 144.8 kB / 359.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.299e-05/0.1174, allocations: 0 / 359.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003863/0.1178, allocations: 177.8 kB / 360.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.372e-06/0.1179, allocations: 0 / 360.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001547/0.1194, allocations: 0.5225 MB / 360.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/0.1195, allocations: 136.5 kB / 360.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002793/0.1198, allocations: 241 kB / 360.9 MB, free: 10.03 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.831e-05/0.1198, allocations: 29.7 kB / 361 MB, free: 9.992 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001295/0.12, allocations: 172.4 kB / 361.1 MB, free: 9.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.077e-05/0.1201, allocations: 71 kB / 361.2 MB, free: 9.75 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.353e-05/0.1201, allocations: 29.7 kB / 361.2 MB, free: 9.715 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.1203, allocations: 330.8 kB / 361.6 MB, free: 9.383 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001765/0.1204, allocations: 79.97 kB / 361.6 MB, free: 9.305 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001985/0.1207, allocations: 121.1 kB / 361.8 MB, free: 9.168 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003204/0.121, allocations: 167.4 kB / 361.9 MB, free: 8.992 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/0.121, allocations: 4 kB / 361.9 MB, free: 8.988 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005467/0.1215, allocations: 294 kB / 362.2 MB, free: 8.691 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.1216, allocations: 6.906 kB / 362.2 MB, free: 8.688 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.84e-05/0.1216, allocations: 11.98 kB / 362.2 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003599/0.122, allocations: 100.6 kB / 362.3 MB, free: 8.574 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001288/0.1221, allocations: 27.98 kB / 362.4 MB, free: 8.547 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002169/0.1243, allocations: 1.944 MB / 364.3 MB, free: 6.469 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002163/0.1245, allocations: 35.92 kB / 364.3 MB, free: 6.434 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.055e-05/0.1245, allocations: 15.98 kB / 364.4 MB, free: 6.418 MB / 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.0001654/0.1247, allocations: 146.7 kB / 364.5 MB, free: 6.266 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.27e-05/0.1248, allocations: 23.72 kB / 364.5 MB, free: 6.242 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.745e-05/0.1248, allocations: 30.17 kB / 364.6 MB, free: 6.215 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.1249, allocations: 7.938 kB / 364.6 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.1249, allocations: 4 kB / 364.6 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.1249, allocations: 0 / 364.6 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001047/0.1259, allocations: 0.7779 MB / 365.3 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.1259, allocations: 3.938 kB / 365.3 MB, free: 5.359 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001117/0.1261, allocations: 19.98 kB / 365.4 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002584/0.1263, allocations: 88.78 kB / 365.5 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.316e-05/0.1264, allocations: 11.98 kB / 365.5 MB, free: 5.238 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002008/0.1284, allocations: 1.932 MB / 367.4 MB, free: 3.172 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.1284, allocations: 3.938 kB / 367.4 MB, free: 3.168 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006785/0.1291, allocations: 471 kB / 367.9 MB, free: 2.688 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001262/0.1292, allocations: 120.8 kB / 368 MB, free: 2.551 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.129e-05/0.1293, allocations: 11.98 kB / 368 MB, free: 2.539 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002187/0.1295, allocations: 23.98 kB / 368 MB, free: 2.516 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.833e-05/0.1296, allocations: 35.95 kB / 368 MB, free: 2.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.328e-05/0.1296, allocations: 4 kB / 368.1 MB, free: 2.477 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001686/0.1298, allocations: 172.5 kB / 368.2 MB, free: 2.309 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1298, allocations: 96 / 368.2 MB, free: 2.309 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004682/0.1303, allocations: 99.78 kB / 368.3 MB, free: 2.211 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.001005/0.1313, allocations: 1.002 MB / 369.3 MB, free: 1.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006897/0.132, allocations: 358.5 kB / 369.7 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.132, allocations: 0 / 369.7 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004131/0.1324, allocations: 262.7 kB / 369.9 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004573/0.1329, allocations: 60.39 kB / 370 MB, free: 500 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2157/0.3486, allocations: 2.921 MB / 372.9 MB, free: 22.98 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004016/0.3491, allocations: 0.7637 MB / 373.7 MB, free: 22.28 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001802/0.3493, allocations: 21.66 kB / 373.7 MB, free: 22.27 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001734/0.3495, allocations: 80.48 kB / 373.8 MB, free: 22.27 MB / 302.1 MB Notification: Performance of SimCode: time 1.693e-06/0.3495, allocations: 0 / 373.8 MB, free: 22.27 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02586/0.3754, allocations: 6.802 MB / 380.6 MB, free: 21.44 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001743/0.3756, allocations: 241.1 kB / 380.8 MB, free: 21.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.129/2.505, allocations: 1.844 kB / 380.8 MB, free: 21.18 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches