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.001659/0.001659, allocations: 113.4 kB / 17.73 MB, free: 5.355 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.001727/0.001728, allocations: 184.1 kB / 18.66 MB, free: 4.43 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.731/1.731, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001861/0.001861, allocations: 51.92 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1132, allocations: 46.62 MB / 374.7 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.005833/0.1191, allocations: 2.874 MB / 377.5 MB, free: 2.191 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002275/0.1214, allocations: 0.7835 MB / 378.3 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004857/0.1219, allocations: 4 kB / 378.3 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003144/0.1223, allocations: 47.52 kB / 378.4 MB, free: 1.348 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004509/0.1228, allocations: 99.11 kB / 378.5 MB, free: 1.25 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000482/0.1233, allocations: 99.83 kB / 378.6 MB, free: 1.152 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006602/0.124, allocations: 410.2 kB / 379 MB, free: 0.75 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003464/0.1243, allocations: 135.2 kB / 379.1 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004114/0.1247, allocations: 151.4 kB / 379.2 MB, free: 476 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003575/0.1251, allocations: 163.3 kB / 379.4 MB, free: 312 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.794e-05/0.1252, allocations: 36 kB / 379.4 MB, free: 276 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.138e-05/0.1253, allocations: 36 kB / 379.5 MB, free: 240 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.624e-05/0.1254, allocations: 79.75 kB / 379.5 MB, free: 160 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2517/0.3771, allocations: 169.8 kB / 379.7 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007466/0.3779, allocations: 435.6 kB / 380.1 MB, free: 9.699 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.73e-06/0.3779, allocations: 0 / 380.1 MB, free: 9.699 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.3779, allocations: 0 / 380.1 MB, free: 9.699 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.498e-06/0.3779, allocations: 0.6562 kB / 380.1 MB, free: 9.699 MB / 318.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.001059/0.379, allocations: 0.6279 MB / 380.8 MB, free: 9.238 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/0.379, allocations: 9.344 kB / 380.8 MB, free: 9.238 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.967e-05/0.3791, allocations: 62.89 kB / 380.8 MB, free: 9.199 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.369e-05/0.3792, allocations: 37.7 kB / 380.9 MB, free: 9.18 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004575/0.3797, allocations: 294.6 kB / 381.2 MB, free: 8.945 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.337e-05/0.3797, allocations: 21.25 kB / 381.2 MB, free: 8.945 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.796e-05/0.3798, allocations: 28.53 kB / 381.2 MB, free: 8.945 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005461/0.3803, allocations: 292.6 kB / 381.5 MB, free: 8.879 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.807e-05/0.3803, allocations: 1.375 kB / 381.5 MB, free: 8.879 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.755e-05/0.3804, allocations: 11.69 kB / 381.5 MB, free: 8.879 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.873e-05/0.3804, allocations: 5.5 kB / 381.5 MB, free: 8.879 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004118/0.3808, allocations: 204.9 kB / 381.7 MB, free: 8.879 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001673/0.3825, allocations: 1.14 MB / 382.8 MB, free: 8.309 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005385/0.3831, allocations: 221 kB / 383.1 MB, free: 8.281 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003604/0.3834, allocations: 145.9 kB / 383.2 MB, free: 8.273 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.489e-05/0.3835, allocations: 2.438 kB / 383.2 MB, free: 8.273 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003187/0.3838, allocations: 167.6 kB / 383.4 MB, free: 8.191 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.774e-06/0.3838, allocations: 1.469 kB / 383.4 MB, free: 8.191 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.001482/0.3853, allocations: 0.5134 MB / 383.9 MB, free: 8.035 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.757e-05/0.3854, allocations: 136.9 kB / 384 MB, free: 7.875 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002471/0.3856, allocations: 244.6 kB / 384.3 MB, free: 7.77 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.247e-05/0.3856, allocations: 32.23 kB / 384.3 MB, free: 7.738 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.722e-05/0.3857, allocations: 175.8 kB / 384.5 MB, free: 7.617 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.701e-05/0.3858, allocations: 68.52 kB / 384.5 MB, free: 7.574 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.999e-05/0.3859, allocations: 55 kB / 384.6 MB, free: 7.555 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.594e-05/0.386, allocations: 331.3 kB / 384.9 MB, free: 7.242 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000155/0.3861, allocations: 75.86 kB / 385 MB, free: 7.238 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001738/0.3863, allocations: 119.5 kB / 385.1 MB, free: 7.191 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002651/0.3866, allocations: 172.4 kB / 385.3 MB, free: 7.152 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.3866, allocations: 0.875 kB / 385.3 MB, free: 7.152 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004762/0.3871, allocations: 295.3 kB / 385.6 MB, free: 7.062 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.3871, allocations: 6.719 kB / 385.6 MB, free: 7.062 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.3871, allocations: 2.625 kB / 385.6 MB, free: 7.062 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003416/0.3875, allocations: 87.11 kB / 385.7 MB, free: 7.031 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001352/0.3876, allocations: 30.03 kB / 385.7 MB, free: 7.031 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001933/0.3896, allocations: 2.147 MB / 387.8 MB, free: 5.184 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002343/0.3898, allocations: 33.47 kB / 387.9 MB, free: 5.168 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.91e-05/0.3898, allocations: 9.438 kB / 387.9 MB, free: 5.164 MB / 318.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.0001397/0.39, allocations: 155 kB / 388 MB, free: 5.023 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.035e-05/0.39, allocations: 27.39 kB / 388 MB, free: 5.008 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.755e-05/0.3901, allocations: 32.14 kB / 388.1 MB, free: 4.984 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.3901, allocations: 5.922 kB / 388.1 MB, free: 4.984 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.3901, allocations: 0.7031 kB / 388.1 MB, free: 4.984 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.3901, allocations: 2 kB / 388.1 MB, free: 4.984 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009015/0.391, allocations: 0.774 MB / 388.9 MB, free: 4.414 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.391, allocations: 2.469 kB / 388.9 MB, free: 4.414 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001121/0.3912, allocations: 21.16 kB / 388.9 MB, free: 4.414 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002722/0.3914, allocations: 90.75 kB / 389 MB, free: 4.379 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.3915, allocations: 6.609 kB / 389 MB, free: 4.375 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001803/0.3933, allocations: 2.147 MB / 391.1 MB, free: 2.535 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3933, allocations: 1.312 kB / 391.1 MB, free: 2.535 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005984/0.3939, allocations: 451.6 kB / 391.6 MB, free: 2.258 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001062/0.394, allocations: 125.7 kB / 391.7 MB, free: 2.137 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.703e-05/0.3941, allocations: 6.375 kB / 391.7 MB, free: 2.133 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001987/0.3943, allocations: 23.06 kB / 391.7 MB, free: 2.125 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.715e-05/0.3944, allocations: 29.67 kB / 391.7 MB, free: 2.121 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.686e-05/0.3944, allocations: 9.688 kB / 391.8 MB, free: 2.117 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000152/0.3946, allocations: 173.6 kB / 391.9 MB, free: 2.008 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3946, allocations: 4.562 kB / 391.9 MB, free: 2.008 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004826/0.395, allocations: 95.59 kB / 392 MB, free: 1.984 MB / 318.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.0008362/0.3959, allocations: 0.9903 MB / 393 MB, free: 1.168 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000671/0.3966, allocations: 361.7 kB / 393.4 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3966, allocations: 1.094 kB / 393.4 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003892/0.397, allocations: 272.2 kB / 393.6 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004392/0.3974, allocations: 68.45 kB / 393.7 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003971/0.4014, allocations: 2.772 MB / 396.5 MB, free: 14.91 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004886/0.4019, allocations: 0.7716 MB / 397.2 MB, free: 14.2 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001267/0.4021, allocations: 20.67 kB / 397.3 MB, free: 14.2 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001351/0.4022, allocations: 82.69 kB / 397.3 MB, free: 14.14 MB / 334.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4022, allocations: 0 / 397.3 MB, free: 14.14 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03936/0.4416, allocations: 7.56 MB / 404.9 MB, free: 11.93 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.53/12.97, allocations: 9.281 kB / 404.9 MB, free: 11.92 MB / 334.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