Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_3_2_3_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.001431/0.001431, allocations: 107.4 kB / 17.16 MB, free: 6.305 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.001705/0.001705, allocations: 198 kB / 18.07 MB, free: 5.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.521/1.521, allocations: 205.1 MB / 223.9 MB, free: 12.5 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 51.92 kB / 280.1 MB, free: 3.504 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1205, allocations: 46.62 MB / 326.7 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.006874/0.1275, allocations: 2.931 MB / 329.6 MB, free: 1.848 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002061/0.1296, allocations: 0.7527 MB / 330.4 MB, free: 1.086 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005146/0.1301, allocations: 7.938 kB / 330.4 MB, free: 1.078 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003595/0.1305, allocations: 39.69 kB / 330.4 MB, free: 1.039 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005733/0.1311, allocations: 79.31 kB / 330.5 MB, free: 0.9609 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006103/0.1318, allocations: 87.94 kB / 330.6 MB, free: 0.875 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009434/0.1327, allocations: 386.2 kB / 331 MB, free: 0.4961 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003759/0.1331, allocations: 123.9 kB / 331.1 MB, free: 384 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002676/0.1334, allocations: 127.5 kB / 331.2 MB, free: 256 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002715/0.1337, allocations: 155.2 kB / 331.4 MB, free: 100 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.074e-05/0.1337, allocations: 20 kB / 331.4 MB, free: 80 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.417e-05/0.1338, allocations: 20 kB / 331.4 MB, free: 60 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.579e-05/0.1339, allocations: 55.77 kB / 331.5 MB, free: 4 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002438/0.1341, allocations: 163.3 kB / 331.6 MB, free: 15.84 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005116/0.1347, allocations: 414.7 kB / 332 MB, free: 15.44 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.1347, allocations: 0 / 332 MB, free: 15.44 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.1347, allocations: 4 kB / 332 MB, free: 15.43 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.969e-06/0.1347, allocations: 0 / 332 MB, free: 15.43 MB / 286.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.001531/0.1362, allocations: 0.6129 MB / 332.6 MB, free: 14.77 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.71e-05/0.1363, allocations: 12.03 kB / 332.7 MB, free: 14.76 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001053/0.1365, allocations: 66.72 kB / 332.7 MB, free: 14.68 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.634e-05/0.1366, allocations: 32.56 kB / 332.7 MB, free: 14.65 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004798/0.137, allocations: 295.4 kB / 333 MB, free: 14.32 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.744e-05/0.1371, allocations: 16.94 kB / 333.1 MB, free: 14.31 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.512e-05/0.1372, allocations: 24.38 kB / 333.1 MB, free: 14.29 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005806/0.1377, allocations: 284.7 kB / 333.4 MB, free: 13.99 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.1378, allocations: 4 kB / 333.4 MB, free: 13.99 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.776e-05/0.1378, allocations: 15.98 kB / 333.4 MB, free: 13.97 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.256e-05/0.1378, allocations: 8 kB / 333.4 MB, free: 13.96 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004371/0.1383, allocations: 202.1 kB / 333.6 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002145/0.1404, allocations: 1.156 MB / 334.7 MB, free: 12.54 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006204/0.1411, allocations: 214.7 kB / 334.9 MB, free: 12.32 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003422/0.1414, allocations: 144.8 kB / 335.1 MB, free: 12.17 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.934e-05/0.1415, allocations: 7.875 kB / 335.1 MB, free: 12.16 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005208/0.142, allocations: 170.7 kB / 335.3 MB, free: 11.97 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 1.482e-06/0.142, allocations: 0 / 335.3 MB, free: 11.97 MB / 286.1 MB Notification: Performance of matching and sorting (n=22): time 0.001623/0.1436, allocations: 0.5107 MB / 335.8 MB, free: 11.43 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002171/0.1439, allocations: 132.5 kB / 335.9 MB, free: 11.27 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002829/0.1442, allocations: 248.9 kB / 336.1 MB, free: 11.02 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.281e-05/0.1442, allocations: 33.7 kB / 336.2 MB, free: 10.98 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001476/0.1444, allocations: 160.5 kB / 336.3 MB, free: 10.82 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.543e-05/0.1444, allocations: 74.98 kB / 336.4 MB, free: 10.75 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.049e-05/0.1445, allocations: 49.7 kB / 336.5 MB, free: 10.69 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.1447, allocations: 334.8 kB / 336.8 MB, free: 10.36 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001622/0.1449, allocations: 71.97 kB / 336.9 MB, free: 10.29 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002057/0.1451, allocations: 121.1 kB / 337 MB, free: 10.15 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003067/0.1454, allocations: 167.4 kB / 337.1 MB, free: 9.973 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.1454, allocations: 4 kB / 337.1 MB, free: 9.969 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005496/0.146, allocations: 294 kB / 337.4 MB, free: 9.672 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.146, allocations: 4 kB / 337.4 MB, free: 9.668 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.146, allocations: 7.984 kB / 337.4 MB, free: 9.66 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004308/0.1465, allocations: 84.91 kB / 337.5 MB, free: 9.574 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001403/0.1466, allocations: 35.86 kB / 337.6 MB, free: 9.539 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002658/0.1493, allocations: 1.948 MB / 339.5 MB, free: 7.457 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002239/0.1495, allocations: 31.81 kB / 339.5 MB, free: 7.426 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.992e-05/0.1495, allocations: 8 kB / 339.5 MB, free: 7.418 MB / 286.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.0001932/0.1497, allocations: 149.9 kB / 339.7 MB, free: 7.262 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.424e-05/0.1498, allocations: 23.72 kB / 339.7 MB, free: 7.238 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.764e-05/0.1499, allocations: 34.17 kB / 339.7 MB, free: 7.203 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.1499, allocations: 3.938 kB / 339.7 MB, free: 7.199 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.395e-06/0.1499, allocations: 7.938 kB / 339.8 MB, free: 7.191 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.1499, allocations: 0 / 339.8 MB, free: 7.191 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001037/0.1509, allocations: 0.7731 MB / 340.5 MB, free: 6.355 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/0.151, allocations: 3.938 kB / 340.5 MB, free: 6.352 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001147/0.1511, allocations: 23.92 kB / 340.6 MB, free: 6.328 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002648/0.1514, allocations: 88.86 kB / 340.6 MB, free: 6.238 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.114e-05/0.1514, allocations: 7.984 kB / 340.7 MB, free: 6.23 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002295/0.1537, allocations: 1.924 MB / 342.6 MB, free: 4.176 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.1537, allocations: 8 kB / 342.6 MB, free: 4.168 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006887/0.1544, allocations: 452.8 kB / 343 MB, free: 3.703 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001239/0.1545, allocations: 124.8 kB / 343.1 MB, free: 3.562 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.872e-05/0.1546, allocations: 8 kB / 343.2 MB, free: 3.555 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001999/0.1548, allocations: 23.98 kB / 343.2 MB, free: 3.531 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001218/0.1549, allocations: 35.89 kB / 343.2 MB, free: 3.496 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.476e-05/0.1549, allocations: 4 kB / 343.2 MB, free: 3.492 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001965/0.1552, allocations: 176.6 kB / 343.4 MB, free: 3.32 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1552, allocations: 3.938 kB / 343.4 MB, free: 3.316 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005043/0.1557, allocations: 91.84 kB / 343.5 MB, free: 3.227 MB / 286.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.001108/0.1568, allocations: 0.9949 MB / 344.5 MB, free: 2.195 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007451/0.1575, allocations: 346.6 kB / 344.8 MB, free: 1.844 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1576, allocations: 0 / 344.8 MB, free: 1.844 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004075/0.158, allocations: 267 kB / 345.1 MB, free: 1.57 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004646/0.1584, allocations: 52.47 kB / 345.1 MB, free: 1.52 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004024/0.1625, allocations: 2.867 MB / 348 MB, free: 14.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004349/0.1629, allocations: 0.7674 MB / 348.8 MB, free: 13.75 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001097/0.1631, allocations: 22.28 kB / 348.8 MB, free: 13.73 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001236/0.1632, allocations: 83.41 kB / 348.9 MB, free: 13.65 MB / 302.1 MB Notification: Performance of SimCode: time 6.82e-07/0.1632, allocations: 4 kB / 348.9 MB, free: 13.64 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03094/0.1941, allocations: 6.926 MB / 355.8 MB, free: 6.684 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003342/0.1945, allocations: 237.9 kB / 356 MB, free: 6.426 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.261/2.456, allocations: 0 / 356 MB, free: 6.426 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_IdealTriacCircuit_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches