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.001344/0.001344, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001244/0.001244, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.401/1.401, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 44.75 kB / 300.7 MB, free: 5.773 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1095, allocations: 49.44 MB / 350.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.005306/0.1149, allocations: 2.919 MB / 353.1 MB, free: 1.383 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00198/0.1169, allocations: 0.7324 MB / 353.8 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004414/0.1174, allocations: 4 kB / 353.8 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002679/0.1177, allocations: 47.5 kB / 353.9 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004108/0.1181, allocations: 103 kB / 354 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004583/0.1186, allocations: 107.8 kB / 354.1 MB, free: 396 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006388/0.1192, allocations: 402.5 kB / 354.5 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003147/0.1196, allocations: 127.2 kB / 354.6 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003679/0.1199, allocations: 151.4 kB / 354.7 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003327/0.1203, allocations: 163.4 kB / 354.9 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.65e-05/0.1204, allocations: 36 kB / 354.9 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001012/0.1205, allocations: 36 kB / 355 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.675e-05/0.1206, allocations: 79.69 kB / 355 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002449/0.1208, allocations: 175.2 kB / 355.2 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000589/0.1214, allocations: 430.8 kB / 355.6 MB, free: 14.82 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1215, allocations: 4 kB / 355.6 MB, free: 14.81 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.1215, allocations: 0 / 355.6 MB, free: 14.81 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.224e-05/0.1215, allocations: 0 / 355.6 MB, free: 14.81 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.001474/0.123, allocations: 0.6207 MB / 356.3 MB, free: 14.14 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.211e-05/0.123, allocations: 11.97 kB / 356.3 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001028/0.1232, allocations: 66.66 kB / 356.3 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001048/0.1233, allocations: 36.56 kB / 356.4 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004392/0.1237, allocations: 275.6 kB / 356.6 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.417e-05/0.1238, allocations: 24.92 kB / 356.7 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.786e-05/0.1238, allocations: 28.36 kB / 356.7 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006082/0.1244, allocations: 292.6 kB / 357 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.1245, allocations: 4 kB / 357 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.474e-05/0.1245, allocations: 12 kB / 357 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.1245, allocations: 4 kB / 357 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004574/0.125, allocations: 202.1 kB / 357.2 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001968/0.127, allocations: 1.148 MB / 358.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000505/0.1275, allocations: 218.5 kB / 358.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000308/0.1278, allocations: 152 kB / 358.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.137e-05/0.1278, allocations: 0 / 358.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003667/0.1282, allocations: 174.6 kB / 358.9 MB, free: 11.35 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.654e-06/0.1282, allocations: 0 / 358.9 MB, free: 11.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001452/0.1297, allocations: 0.5146 MB / 359.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.998e-05/0.1298, allocations: 132.5 kB / 359.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002688/0.1301, allocations: 241 kB / 359.7 MB, free: 10.4 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.717e-05/0.1301, allocations: 29.7 kB / 359.8 MB, free: 10.37 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001257/0.1302, allocations: 168.4 kB / 359.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.388e-05/0.1303, allocations: 71 kB / 360 MB, free: 10.13 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.307e-05/0.1304, allocations: 45.7 kB / 360.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.1306, allocations: 338.8 kB / 360.4 MB, free: 9.738 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001694/0.1308, allocations: 71.97 kB / 360.5 MB, free: 9.668 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000198/0.131, allocations: 121.6 kB / 360.6 MB, free: 9.531 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003192/0.1313, allocations: 179.3 kB / 360.8 MB, free: 9.344 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.1313, allocations: 0 / 360.8 MB, free: 9.344 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005319/0.1318, allocations: 294 kB / 361 MB, free: 9.047 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.1319, allocations: 4 kB / 361 MB, free: 9.043 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-06/0.1319, allocations: 0 / 361 MB, free: 9.043 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003678/0.1323, allocations: 96.83 kB / 361.1 MB, free: 8.945 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001408/0.1324, allocations: 31.98 kB / 361.2 MB, free: 8.914 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002977/0.1354, allocations: 2.146 MB / 363.3 MB, free: 6.625 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002239/0.1356, allocations: 31.8 kB / 363.3 MB, free: 6.594 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.311e-05/0.1357, allocations: 12 kB / 363.4 MB, free: 6.582 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.0001764/0.1359, allocations: 147 kB / 363.5 MB, free: 6.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.973e-05/0.1359, allocations: 27.66 kB / 363.5 MB, free: 6.402 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.609e-05/0.136, allocations: 34.23 kB / 363.6 MB, free: 6.371 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.136, allocations: 4 kB / 363.6 MB, free: 6.367 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.136, allocations: 3.984 kB / 363.6 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.136, allocations: 0 / 363.6 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001066/0.1371, allocations: 0.7702 MB / 364.3 MB, free: 5.531 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.1371, allocations: 4 kB / 364.3 MB, free: 5.527 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000116/0.1372, allocations: 19.92 kB / 364.4 MB, free: 5.508 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000285/0.1375, allocations: 92.83 kB / 364.5 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.057e-05/0.1376, allocations: 4 kB / 364.5 MB, free: 5.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002394/0.14, allocations: 2.158 MB / 366.6 MB, free: 3.113 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.14, allocations: 0 / 366.6 MB, free: 3.113 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007102/0.1407, allocations: 451.1 kB / 367.1 MB, free: 2.652 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001444/0.1409, allocations: 124.8 kB / 367.2 MB, free: 2.512 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.58e-05/0.1409, allocations: 12 kB / 367.2 MB, free: 2.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002094/0.1411, allocations: 19.98 kB / 367.2 MB, free: 2.48 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001147/0.1413, allocations: 31.95 kB / 367.2 MB, free: 2.449 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.453e-05/0.1413, allocations: 7.938 kB / 367.2 MB, free: 2.441 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001892/0.1415, allocations: 176.5 kB / 367.4 MB, free: 2.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1415, allocations: 4.062 kB / 367.4 MB, free: 2.266 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004773/0.142, allocations: 91.84 kB / 367.5 MB, free: 2.176 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.001059/0.143, allocations: 0.9823 MB / 368.5 MB, free: 1.164 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007196/0.1438, allocations: 370.3 kB / 368.9 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.1438, allocations: 0 / 368.9 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004369/0.1442, allocations: 266.6 kB / 369.1 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004323/0.1447, allocations: 60.61 kB / 369.2 MB, free: 468 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2229/0.3676, allocations: 2.773 MB / 372 MB, free: 23.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004785/0.3682, allocations: 0.7632 MB / 372.7 MB, free: 23.17 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002628/0.3685, allocations: 21.58 kB / 372.7 MB, free: 23.16 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001994/0.3687, allocations: 81.66 kB / 372.8 MB, free: 23.16 MB / 302.1 MB Notification: Performance of SimCode: time 1.242e-06/0.3687, allocations: 0 / 372.8 MB, free: 23.16 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.036/0.4047, allocations: 7.412 MB / 380.2 MB, free: 21.91 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.44, allocations: 1.859 kB / 380.2 MB, free: 21.91 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