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.00123/0.00123, allocations: 99.02 kB / 17.58 MB, free: 5.418 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.001241/0.00124, allocations: 192 kB / 18.51 MB, free: 4.508 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.357/1.357, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.001121/0.001121, allocations: 55.92 kB / 280.7 MB, free: 3.086 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07667/0.0778, allocations: 46.64 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004511/0.08236, allocations: 2.882 MB / 330.3 MB, free: 1.465 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001364/0.08374, allocations: 0.7643 MB / 331 MB, free: 0.6914 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002264/0.08399, allocations: 4 kB / 331 MB, free: 0.6875 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001753/0.0842, allocations: 55.44 kB / 331.1 MB, free: 0.6328 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002211/0.08443, allocations: 103.1 kB / 331.2 MB, free: 0.5312 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002905/0.08472, allocations: 99.81 kB / 331.3 MB, free: 444 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003752/0.08511, allocations: 406.2 kB / 331.7 MB, free: 36 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002293/0.08534, allocations: 127.2 kB / 331.8 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001962/0.08555, allocations: 147.5 kB / 332 MB, free: 15.77 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001983/0.08576, allocations: 167.2 kB / 332.1 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.285e-05/0.08581, allocations: 36 kB / 332.1 MB, free: 15.57 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.771e-05/0.08588, allocations: 40 kB / 332.2 MB, free: 15.53 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.407e-05/0.08596, allocations: 79.75 kB / 332.3 MB, free: 15.45 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001547/0.08612, allocations: 179.1 kB / 332.4 MB, free: 15.28 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003548/0.08648, allocations: 430.8 kB / 332.9 MB, free: 14.86 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.08649, allocations: 0 / 332.9 MB, free: 14.86 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.0865, allocations: 0 / 332.9 MB, free: 14.86 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.666e-06/0.08651, allocations: 0 / 332.9 MB, free: 14.86 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.0009576/0.08747, allocations: 0.6168 MB / 333.5 MB, free: 14.19 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.08752, allocations: 8.031 kB / 333.5 MB, free: 14.18 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.697e-05/0.0876, allocations: 62.72 kB / 333.5 MB, free: 14.11 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.496e-05/0.08767, allocations: 36.56 kB / 333.6 MB, free: 14.07 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002903/0.08796, allocations: 287.5 kB / 333.9 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.992e-05/0.08799, allocations: 24.92 kB / 333.9 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.121e-05/0.08804, allocations: 24.38 kB / 333.9 MB, free: 13.71 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000447/0.08849, allocations: 288.7 kB / 334.2 MB, free: 13.41 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.08851, allocations: 0 / 334.2 MB, free: 13.41 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.878e-05/0.08854, allocations: 12 kB / 334.2 MB, free: 13.4 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.08856, allocations: 7.938 kB / 334.2 MB, free: 13.39 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003613/0.08892, allocations: 206.1 kB / 334.4 MB, free: 13.19 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001516/0.09045, allocations: 1.16 MB / 335.6 MB, free: 11.96 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004416/0.0909, allocations: 210.7 kB / 335.8 MB, free: 11.74 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002637/0.09118, allocations: 144.8 kB / 335.9 MB, free: 11.6 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.988e-05/0.09121, allocations: 7.938 kB / 335.9 MB, free: 11.59 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002806/0.09149, allocations: 166.7 kB / 336.1 MB, free: 11.4 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 1.342e-06/0.0915, allocations: 0 / 336.1 MB, free: 11.4 MB / 286.1 MB Notification: Performance of matching and sorting (n=22): time 0.001261/0.09277, allocations: 0.5146 MB / 336.6 MB, free: 10.86 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.522e-05/0.09285, allocations: 132.5 kB / 336.7 MB, free: 10.7 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002201/0.09307, allocations: 244.9 kB / 337 MB, free: 10.45 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.027e-05/0.09311, allocations: 29.7 kB / 337 MB, free: 10.41 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.682e-05/0.09321, allocations: 176.5 kB / 337.2 MB, free: 10.24 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.01e-05/0.09328, allocations: 70.98 kB / 337.2 MB, free: 10.17 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.678e-05/0.09336, allocations: 45.7 kB / 337.3 MB, free: 10.12 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001055/0.09347, allocations: 338.8 kB / 337.6 MB, free: 9.777 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001509/0.09363, allocations: 71.97 kB / 337.7 MB, free: 9.707 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001636/0.0938, allocations: 125 kB / 337.8 MB, free: 9.566 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002685/0.09408, allocations: 167.3 kB / 338 MB, free: 9.391 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.09409, allocations: 0 / 338 MB, free: 9.391 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004534/0.09455, allocations: 294.1 kB / 338.3 MB, free: 9.094 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.231e-05/0.09457, allocations: 8 kB / 338.3 MB, free: 9.086 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.09458, allocations: 0 / 338.3 MB, free: 9.086 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003021/0.09489, allocations: 96.73 kB / 338.4 MB, free: 8.988 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001244/0.09502, allocations: 31.92 kB / 338.4 MB, free: 8.957 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002025/0.09705, allocations: 2.146 MB / 340.5 MB, free: 6.668 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001895/0.09726, allocations: 27.86 kB / 340.6 MB, free: 6.641 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.681e-05/0.09728, allocations: 8 kB / 340.6 MB, free: 6.633 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.0001261/0.09741, allocations: 150.6 kB / 340.7 MB, free: 6.477 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.94e-05/0.09746, allocations: 27.66 kB / 340.8 MB, free: 6.449 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.886e-05/0.09752, allocations: 30.17 kB / 340.8 MB, free: 6.418 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-06/0.09753, allocations: 4 kB / 340.8 MB, free: 6.414 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.783e-06/0.09754, allocations: 0 / 340.8 MB, free: 6.414 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.09755, allocations: 112 / 340.8 MB, free: 6.414 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008658/0.09842, allocations: 0.7801 MB / 341.6 MB, free: 5.57 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.09843, allocations: 4 kB / 341.6 MB, free: 5.566 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001028/0.09854, allocations: 19.98 kB / 341.6 MB, free: 5.547 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002347/0.09878, allocations: 92.73 kB / 341.7 MB, free: 5.453 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.09881, allocations: 0 / 341.7 MB, free: 5.453 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001937/0.1008, allocations: 2.146 MB / 343.8 MB, free: 3.172 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.1008, allocations: 0 / 343.8 MB, free: 3.172 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005869/0.1014, allocations: 456.8 kB / 344.3 MB, free: 2.703 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001018/0.1015, allocations: 128.8 kB / 344.4 MB, free: 2.559 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.57e-05/0.1015, allocations: 0 / 344.4 MB, free: 2.559 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001902/0.1017, allocations: 23.98 kB / 344.4 MB, free: 2.535 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.764e-05/0.1018, allocations: 36.02 kB / 344.5 MB, free: 2.5 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.279e-05/0.1018, allocations: 4 kB / 344.5 MB, free: 2.496 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001399/0.102, allocations: 180.5 kB / 344.6 MB, free: 2.32 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.102, allocations: 0 / 344.6 MB, free: 2.32 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004125/0.1024, allocations: 91.84 kB / 344.7 MB, free: 2.23 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.000854/0.1033, allocations: 0.9949 MB / 345.7 MB, free: 1.199 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005922/0.1039, allocations: 351 kB / 346.1 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.1039, allocations: 0 / 346.1 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003645/0.1042, allocations: 282.6 kB / 346.3 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003654/0.1046, allocations: 48.48 kB / 346.4 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00321/0.1078, allocations: 2.777 MB / 349.2 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003418/0.1082, allocations: 0.7597 MB / 349.9 MB, free: 12.83 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.518e-05/0.1083, allocations: 26.27 kB / 350 MB, free: 12.81 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001013/0.1084, allocations: 83.41 kB / 350 MB, free: 12.73 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1084, allocations: 0 / 350 MB, free: 12.73 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04386/0.1523, allocations: 7.422 MB / 357.5 MB, free: 5.242 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.88/11.03, allocations: 19.69 kB / 357.5 MB, free: 5.223 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches