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.001396/0.001396, allocations: 105.3 kB / 17.73 MB, free: 5.32 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.00149/0.00149, allocations: 192.2 kB / 18.67 MB, free: 4.387 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.615/1.615, allocations: 205.1 MB / 224.5 MB, free: 12.2 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.001382/0.001382, allocations: 51.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1052, allocations: 46.61 MB / 374.6 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004735/0.11, allocations: 2.894 MB / 377.5 MB, free: 2.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001683/0.1117, allocations: 0.7718 MB / 378.3 MB, free: 1.379 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003717/0.1121, allocations: 4 kB / 378.3 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002797/0.1124, allocations: 51.5 kB / 378.4 MB, free: 1.324 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000416/0.1129, allocations: 103.1 kB / 378.5 MB, free: 1.223 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000476/0.1133, allocations: 95.83 kB / 378.6 MB, free: 1.129 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007148/0.1141, allocations: 418.1 kB / 379 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003424/0.1144, allocations: 131.2 kB / 379.1 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003825/0.1148, allocations: 155.5 kB / 379.2 MB, free: 444 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003627/0.1152, allocations: 159.2 kB / 379.4 MB, free: 284 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.95e-05/0.1153, allocations: 36 kB / 379.4 MB, free: 248 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001169/0.1154, allocations: 40 kB / 379.5 MB, free: 208 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.876e-05/0.1155, allocations: 75.77 kB / 379.5 MB, free: 132 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2745/0.39, allocations: 172.7 kB / 379.7 MB, free: 9.668 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008102/0.3909, allocations: 433.3 kB / 380.1 MB, free: 9.648 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.219e-06/0.3909, allocations: 0 / 380.1 MB, free: 9.648 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.3909, allocations: 2.938 kB / 380.1 MB, free: 9.648 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.836e-06/0.391, allocations: 0 / 380.1 MB, free: 9.648 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.001141/0.3921, allocations: 0.6266 MB / 380.8 MB, free: 9.188 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/0.3922, allocations: 10.28 kB / 380.8 MB, free: 9.188 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.95e-05/0.3922, allocations: 58.62 kB / 380.8 MB, free: 9.148 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.69e-05/0.3923, allocations: 38.58 kB / 380.9 MB, free: 9.129 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004292/0.3928, allocations: 294.7 kB / 381.2 MB, free: 8.895 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.539e-05/0.3928, allocations: 21.31 kB / 381.2 MB, free: 8.895 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.74e-05/0.3929, allocations: 22.84 kB / 381.2 MB, free: 8.895 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005564/0.3934, allocations: 295.5 kB / 381.5 MB, free: 8.828 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.44e-05/0.3935, allocations: 0 / 381.5 MB, free: 8.828 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.27e-05/0.3935, allocations: 12.44 kB / 381.5 MB, free: 8.828 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.3935, allocations: 9.031 kB / 381.5 MB, free: 8.828 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005066/0.394, allocations: 203.5 kB / 381.7 MB, free: 8.828 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00205/0.3961, allocations: 1.147 MB / 382.9 MB, free: 8.258 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006114/0.3967, allocations: 217.6 kB / 383.1 MB, free: 8.23 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003639/0.3971, allocations: 138.9 kB / 383.2 MB, free: 8.223 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.465e-05/0.3971, allocations: 2 kB / 383.2 MB, free: 8.223 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003542/0.3975, allocations: 173.4 kB / 383.4 MB, free: 8.141 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.683e-06/0.3975, allocations: 0 / 383.4 MB, free: 8.141 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.001554/0.3991, allocations: 0.514 MB / 383.9 MB, free: 7.98 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.415e-05/0.3991, allocations: 135.9 kB / 384 MB, free: 7.824 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000291/0.3994, allocations: 244.7 kB / 384.3 MB, free: 7.719 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.764e-05/0.3995, allocations: 30.92 kB / 384.3 MB, free: 7.688 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001375/0.3996, allocations: 171.4 kB / 384.5 MB, free: 7.566 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.043e-05/0.3997, allocations: 72.53 kB / 384.5 MB, free: 7.523 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001224/0.3998, allocations: 57 kB / 384.6 MB, free: 7.5 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.3999, allocations: 334.6 kB / 384.9 MB, free: 7.188 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001691/0.4001, allocations: 71.06 kB / 385 MB, free: 7.188 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002005/0.4003, allocations: 125 kB / 385.1 MB, free: 7.141 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003215/0.4007, allocations: 170.3 kB / 385.3 MB, free: 7.102 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.4007, allocations: 0.9688 kB / 385.3 MB, free: 7.102 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005591/0.4012, allocations: 292.1 kB / 385.6 MB, free: 7.012 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.847e-05/0.4013, allocations: 5.562 kB / 385.6 MB, free: 7.012 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.4013, allocations: 2.031 kB / 385.6 MB, free: 7.012 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004484/0.4018, allocations: 98.91 kB / 385.7 MB, free: 6.973 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000157/0.4019, allocations: 24.23 kB / 385.7 MB, free: 6.973 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002498/0.4044, allocations: 2.146 MB / 387.8 MB, free: 5.129 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002834/0.4047, allocations: 37.81 kB / 387.9 MB, free: 5.109 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.454e-05/0.4048, allocations: 6.953 kB / 387.9 MB, free: 5.109 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.0002189/0.405, allocations: 148.3 kB / 388 MB, free: 4.973 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.516e-05/0.4051, allocations: 29.14 kB / 388 MB, free: 4.957 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.565e-05/0.4051, allocations: 30.69 kB / 388.1 MB, free: 4.934 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.768e-06/0.4051, allocations: 3.984 kB / 388.1 MB, free: 4.934 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.4052, allocations: 1.438 kB / 388.1 MB, free: 4.934 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.992e-06/0.4052, allocations: 0.75 kB / 388.1 MB, free: 4.934 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001137/0.4063, allocations: 0.7739 MB / 388.9 MB, free: 4.363 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.4063, allocations: 1.219 kB / 388.9 MB, free: 4.363 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001274/0.4065, allocations: 26.42 kB / 388.9 MB, free: 4.359 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002885/0.4068, allocations: 91.03 kB / 389 MB, free: 4.328 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.235e-05/0.4068, allocations: 5.922 kB / 389 MB, free: 4.324 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002103/0.4089, allocations: 2.149 MB / 391.1 MB, free: 2.484 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.4089, allocations: 1.5 kB / 391.1 MB, free: 2.484 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007052/0.4096, allocations: 453 kB / 391.6 MB, free: 2.203 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001156/0.4098, allocations: 123.3 kB / 391.7 MB, free: 2.082 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.998e-05/0.4098, allocations: 6.828 kB / 391.7 MB, free: 2.078 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002025/0.41, allocations: 15.02 kB / 391.7 MB, free: 2.078 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001127/0.4101, allocations: 33.39 kB / 391.7 MB, free: 2.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.538e-05/0.4102, allocations: 5.406 kB / 391.8 MB, free: 2.07 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002109/0.4104, allocations: 183.1 kB / 391.9 MB, free: 1.957 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4104, allocations: 5.125 kB / 391.9 MB, free: 1.953 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005263/0.4109, allocations: 96.88 kB / 392 MB, free: 1.93 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.0009944/0.4119, allocations: 0.9868 MB / 393 MB, free: 1.117 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008613/0.4128, allocations: 362.4 kB / 393.4 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.4128, allocations: 1.281 kB / 393.4 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004238/0.4132, allocations: 272.6 kB / 393.6 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004787/0.4137, allocations: 68.14 kB / 393.7 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003987/0.4177, allocations: 2.768 MB / 396.5 MB, free: 14.83 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000458/0.4182, allocations: 0.768 MB / 397.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001486/0.4184, allocations: 20.27 kB / 397.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001453/0.4185, allocations: 82.64 kB / 397.3 MB, free: 14.06 MB / 334.1 MB Notification: Performance of SimCode: time 3.015e-06/0.4185, allocations: 0 / 397.3 MB, free: 14.06 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05169/0.4702, allocations: 7.568 MB / 404.9 MB, free: 11.86 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.4/12.87, allocations: 10.11 kB / 404.9 MB, free: 11.86 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