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.001444/0.001444, allocations: 115.1 kB / 16.63 MB, free: 6.812 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.001641/0.001641, allocations: 189.8 kB / 17.55 MB, free: 5.934 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.501/1.501, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 47.17 kB / 300.2 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1227, allocations: 49.45 MB / 349.7 MB, free: 4.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.00473/0.1275, allocations: 2.951 MB / 352.6 MB, free: 1.707 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00156/0.1291, allocations: 0.7245 MB / 353.4 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003355/0.1294, allocations: 4 kB / 353.4 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002364/0.1297, allocations: 39.7 kB / 353.4 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003469/0.1301, allocations: 83.3 kB / 353.5 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004392/0.1305, allocations: 87.92 kB / 353.6 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006245/0.1312, allocations: 406.3 kB / 354 MB, free: 376 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003372/0.1315, allocations: 131.2 kB / 354.1 MB, free: 244 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003099/0.1318, allocations: 155.4 kB / 354.2 MB, free: 88 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003194/0.1322, allocations: 155.5 kB / 354.4 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.845e-05/0.1323, allocations: 40 kB / 354.4 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.298e-05/0.1324, allocations: 36 kB / 354.5 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.721e-05/0.1324, allocations: 75.75 kB / 354.5 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002245/0.1327, allocations: 179.1 kB / 354.7 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005196/0.1332, allocations: 434.8 kB / 355.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.824e-06/0.1332, allocations: 0 / 355.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.1332, allocations: 0 / 355.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.243e-05/0.1333, allocations: 0 / 355.1 MB, free: 15.18 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.001347/0.1346, allocations: 0.6206 MB / 355.8 MB, free: 14.51 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/0.1347, allocations: 12.03 kB / 355.8 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.156e-05/0.1348, allocations: 58.73 kB / 355.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.965e-05/0.1349, allocations: 36.56 kB / 355.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003941/0.1353, allocations: 291.5 kB / 356.2 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.558e-05/0.1353, allocations: 20.94 kB / 356.2 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.346e-05/0.1354, allocations: 28.31 kB / 356.2 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005848/0.136, allocations: 288.7 kB / 356.5 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.136, allocations: 0 / 356.5 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.976e-05/0.136, allocations: 8 kB / 356.5 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.133e-05/0.136, allocations: 8 kB / 356.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004147/0.1365, allocations: 210.1 kB / 356.7 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001936/0.1384, allocations: 1.152 MB / 357.9 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005342/0.139, allocations: 216.4 kB / 358.1 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003041/0.1393, allocations: 148.8 kB / 358.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.861e-05/0.1393, allocations: 4 kB / 358.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003765/0.1397, allocations: 170.6 kB / 358.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.663e-06/0.1397, allocations: 0 / 358.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001417/0.1411, allocations: 0.5044 MB / 358.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.683e-05/0.1412, allocations: 140.5 kB / 359 MB, free: 11.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002685/0.1415, allocations: 240.9 kB / 359.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.289e-05/0.1416, allocations: 33.7 kB / 359.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.1417, allocations: 168.4 kB / 359.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.516e-05/0.1418, allocations: 71 kB / 359.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.707e-05/0.1419, allocations: 45.7 kB / 359.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.142, allocations: 334.8 kB / 359.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001758/0.1422, allocations: 75.97 kB / 360 MB, free: 10.04 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001865/0.1424, allocations: 129 kB / 360.1 MB, free: 9.891 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002962/0.1427, allocations: 167.3 kB / 360.3 MB, free: 9.715 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1427, allocations: 4.031 kB / 360.3 MB, free: 9.711 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005126/0.1432, allocations: 290 kB / 360.6 MB, free: 9.418 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.1433, allocations: 11.98 kB / 360.6 MB, free: 9.406 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.1433, allocations: 0 / 360.6 MB, free: 9.406 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003418/0.1436, allocations: 88.81 kB / 360.6 MB, free: 9.316 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001357/0.1438, allocations: 32.02 kB / 360.7 MB, free: 9.285 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002428/0.1462, allocations: 2.15 MB / 362.8 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002101/0.1464, allocations: 31.89 kB / 362.9 MB, free: 6.961 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.951e-05/0.1465, allocations: 4 kB / 362.9 MB, free: 6.957 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.0001657/0.1466, allocations: 153.7 kB / 363 MB, free: 6.797 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.263e-05/0.1467, allocations: 31.64 kB / 363 MB, free: 6.766 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.077e-05/0.1467, allocations: 30.19 kB / 363.1 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.1468, allocations: 4 kB / 363.1 MB, free: 6.734 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.1468, allocations: 4 kB / 363.1 MB, free: 6.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.341e-06/0.1468, allocations: 3.984 kB / 363.1 MB, free: 6.727 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009819/0.1478, allocations: 0.77 MB / 363.9 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.1478, allocations: 4 kB / 363.9 MB, free: 5.891 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001139/0.1479, allocations: 23.92 kB / 363.9 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002627/0.1482, allocations: 92.83 kB / 364 MB, free: 5.773 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.055e-05/0.1482, allocations: 4 kB / 364 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002316/0.1505, allocations: 2.142 MB / 366.1 MB, free: 3.488 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.1506, allocations: 0 / 366.1 MB, free: 3.488 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006526/0.1512, allocations: 462.8 kB / 366.6 MB, free: 3.016 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001161/0.1513, allocations: 116.9 kB / 366.7 MB, free: 2.883 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.34e-05/0.1514, allocations: 12.12 kB / 366.7 MB, free: 2.871 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001995/0.1516, allocations: 11.98 kB / 366.7 MB, free: 2.859 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001128/0.1517, allocations: 35.95 kB / 366.7 MB, free: 2.824 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.539e-05/0.1517, allocations: 4 kB / 366.7 MB, free: 2.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001585/0.1519, allocations: 176.5 kB / 366.9 MB, free: 2.648 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.1519, allocations: 0 / 366.9 MB, free: 2.648 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000469/0.1524, allocations: 95.75 kB / 367 MB, free: 2.555 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.001008/0.1534, allocations: 1.001 MB / 368 MB, free: 1.523 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007449/0.1542, allocations: 362.4 kB / 368.4 MB, free: 1.156 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1542, allocations: 0 / 368.4 MB, free: 1.156 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004115/0.1546, allocations: 262.5 kB / 368.6 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004575/0.1551, allocations: 69.06 kB / 368.7 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1906/0.3457, allocations: 2.866 MB / 371.6 MB, free: 24.23 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002934/0.346, allocations: 0.7684 MB / 372.3 MB, free: 23.53 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001455/0.3462, allocations: 23.22 kB / 372.4 MB, free: 23.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001201/0.3463, allocations: 82.22 kB / 372.4 MB, free: 23.52 MB / 302.1 MB Notification: Performance of SimCode: time 1.644e-06/0.3463, allocations: 0 / 372.4 MB, free: 23.52 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02448/0.3708, allocations: 7.21 MB / 379.6 MB, free: 22.49 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001401/0.371, allocations: 242 kB / 379.9 MB, free: 22.23 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.071/2.442, allocations: 1.156 kB / 379.9 MB, free: 22.23 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