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.001158/0.001158, allocations: 101.9 kB / 17.58 MB, free: 5.422 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.00119/0.00119, allocations: 192.2 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.368/1.368, 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.001406/0.001407, allocations: 52.16 kB / 280.7 MB, free: 3.098 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09219/0.09361, allocations: 46.64 MB / 327.4 MB, free: 4.391 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004431/0.09808, allocations: 2.878 MB / 330.3 MB, free: 1.484 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001515/0.09963, allocations: 0.7721 MB / 331 MB, free: 0.7031 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002972/0.09995, allocations: 4 kB / 331 MB, free: 0.6992 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002383/0.1002, allocations: 51.5 kB / 331.1 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003256/0.1006, allocations: 99.12 kB / 331.2 MB, free: 0.5508 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003763/0.101, allocations: 99.81 kB / 331.3 MB, free: 464 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005431/0.1015, allocations: 410.2 kB / 331.7 MB, free: 52 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003032/0.1018, allocations: 131.2 kB / 331.8 MB, free: 15.93 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002897/0.1021, allocations: 147.5 kB / 332 MB, free: 15.78 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002959/0.1024, allocations: 163.2 kB / 332.1 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.918e-05/0.1025, allocations: 36 kB / 332.1 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.719e-05/0.1026, allocations: 36 kB / 332.2 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.656e-05/0.1027, allocations: 79.77 kB / 332.3 MB, free: 15.47 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001987/0.1029, allocations: 179.1 kB / 332.4 MB, free: 15.3 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004416/0.1034, allocations: 426.8 kB / 332.9 MB, free: 14.88 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.1034, allocations: 0 / 332.9 MB, free: 14.88 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1034, allocations: 0 / 332.9 MB, free: 14.88 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.257e-05/0.1034, allocations: 0 / 332.9 MB, free: 14.88 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.001174/0.1046, allocations: 0.6245 MB / 333.5 MB, free: 14.2 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/0.1046, allocations: 8.031 kB / 333.5 MB, free: 14.2 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.105e-05/0.1047, allocations: 58.73 kB / 333.5 MB, free: 14.13 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.709e-05/0.1048, allocations: 36.56 kB / 333.6 MB, free: 14.09 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003502/0.1052, allocations: 291.5 kB / 333.9 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.022e-05/0.1052, allocations: 20.94 kB / 333.9 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.753e-05/0.1053, allocations: 24.38 kB / 333.9 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004947/0.1058, allocations: 296.7 kB / 334.2 MB, free: 13.43 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.1058, allocations: 0 / 334.2 MB, free: 13.43 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.886e-05/0.1058, allocations: 15.94 kB / 334.2 MB, free: 13.41 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.1058, allocations: 4 kB / 334.2 MB, free: 13.41 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003935/0.1062, allocations: 206.1 kB / 334.4 MB, free: 13.2 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00172/0.108, allocations: 1.148 MB / 335.6 MB, free: 11.98 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004918/0.1085, allocations: 218.7 kB / 335.8 MB, free: 11.76 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003009/0.1088, allocations: 148.8 kB / 335.9 MB, free: 11.61 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.635e-05/0.1088, allocations: 3.938 kB / 335.9 MB, free: 11.61 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003366/0.1092, allocations: 174.7 kB / 336.1 MB, free: 11.41 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 1.543e-06/0.1092, allocations: 0 / 336.1 MB, free: 11.41 MB / 286.1 MB Notification: Performance of matching and sorting (n=22): time 0.001344/0.1105, allocations: 0.5107 MB / 336.6 MB, free: 10.87 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.979e-05/0.1106, allocations: 132.5 kB / 336.7 MB, free: 10.71 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000239/0.1108, allocations: 244.9 kB / 337 MB, free: 10.46 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.889e-05/0.1109, allocations: 29.7 kB / 337 MB, free: 10.43 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001101/0.111, allocations: 172.4 kB / 337.2 MB, free: 10.25 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.079e-05/0.1111, allocations: 67.05 kB / 337.2 MB, free: 10.19 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.65e-05/0.1112, allocations: 45.7 kB / 337.3 MB, free: 10.14 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.1113, allocations: 338.8 kB / 337.6 MB, free: 9.797 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001576/0.1114, allocations: 71.97 kB / 337.7 MB, free: 9.727 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001847/0.1116, allocations: 121 kB / 337.8 MB, free: 9.59 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000281/0.1119, allocations: 167.4 kB / 338 MB, free: 9.414 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.1119, allocations: 0 / 338 MB, free: 9.414 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004875/0.1124, allocations: 301.9 kB / 338.3 MB, free: 9.109 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.1125, allocations: 4 kB / 338.3 MB, free: 9.105 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.1125, allocations: 4.094 kB / 338.3 MB, free: 9.102 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003371/0.1128, allocations: 96.73 kB / 338.4 MB, free: 9.004 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001331/0.113, allocations: 31.92 kB / 338.4 MB, free: 8.973 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002189/0.1152, allocations: 2.146 MB / 340.5 MB, free: 6.684 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002125/0.1154, allocations: 27.86 kB / 340.6 MB, free: 6.656 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.916e-05/0.1154, allocations: 11.98 kB / 340.6 MB, free: 6.645 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.0001496/0.1156, allocations: 150.6 kB / 340.7 MB, free: 6.488 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.701e-05/0.1156, allocations: 27.66 kB / 340.8 MB, free: 6.461 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.097e-05/0.1157, allocations: 30.17 kB / 340.8 MB, free: 6.43 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.1157, allocations: 4 kB / 340.8 MB, free: 6.426 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.1157, allocations: 112 / 340.8 MB, free: 6.426 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.1157, allocations: 7.922 kB / 340.8 MB, free: 6.418 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009198/0.1166, allocations: 0.7802 MB / 341.6 MB, free: 5.574 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.1167, allocations: 4 kB / 341.6 MB, free: 5.57 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000108/0.1168, allocations: 15.98 kB / 341.6 MB, free: 5.555 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000245/0.117, allocations: 84.81 kB / 341.7 MB, free: 5.469 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.864e-05/0.1171, allocations: 4 kB / 341.7 MB, free: 5.465 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002132/0.1192, allocations: 2.146 MB / 343.8 MB, free: 3.184 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.1192, allocations: 4 kB / 343.8 MB, free: 3.18 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006824/0.1199, allocations: 456.8 kB / 344.3 MB, free: 2.711 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000112/0.12, allocations: 124.8 kB / 344.4 MB, free: 2.57 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.144e-05/0.1201, allocations: 4 kB / 344.4 MB, free: 2.566 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002003/0.1203, allocations: 15.98 kB / 344.4 MB, free: 2.551 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.1204, allocations: 31.95 kB / 344.5 MB, free: 2.52 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-05/0.1204, allocations: 12.05 kB / 344.5 MB, free: 2.508 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002371/0.1207, allocations: 180.5 kB / 344.6 MB, free: 2.332 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1207, allocations: 0 / 344.6 MB, free: 2.332 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004793/0.1212, allocations: 91.75 kB / 344.7 MB, free: 2.242 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.0009885/0.1222, allocations: 0.9911 MB / 345.7 MB, free: 1.215 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006928/0.1229, allocations: 354.9 kB / 346.1 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.1229, allocations: 0 / 346.1 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004056/0.1233, allocations: 278.7 kB / 346.3 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000441/0.1237, allocations: 52.72 kB / 346.4 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003533/0.1273, allocations: 2.775 MB / 349.2 MB, free: 13.63 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003148/0.1276, allocations: 0.7596 MB / 349.9 MB, free: 12.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.751e-05/0.1277, allocations: 26.23 kB / 350 MB, free: 12.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000112/0.1278, allocations: 83.41 kB / 350 MB, free: 12.74 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1279, allocations: 0 / 350 MB, free: 12.74 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03032/0.1582, allocations: 7.423 MB / 357.5 MB, free: 5.254 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.79/10.95, allocations: 15.67 kB / 357.5 MB, free: 5.238 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 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.csv","/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