Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_4_0_0_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.001377/0.001377, allocations: 108.2 kB / 16.92 MB, free: 6.145 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.001525/0.001525, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.44/1.44, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001344, allocations: 48.39 kB / 300.7 MB, free: 5.766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0911/0.09248, allocations: 49.45 MB / 350.2 MB, free: 4.305 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.00524/0.09775, allocations: 2.907 MB / 353.1 MB, free: 1.375 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001617/0.0994, allocations: 0.7323 MB / 353.8 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002564/0.09969, allocations: 8 kB / 353.8 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002203/0.09995, allocations: 51.5 kB / 353.9 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002693/0.1002, allocations: 91.11 kB / 354 MB, free: 500 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003215/0.1006, allocations: 103.8 kB / 354.1 MB, free: 396 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004635/0.101, allocations: 414.4 kB / 354.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002565/0.1013, allocations: 123.2 kB / 354.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002525/0.1016, allocations: 159.4 kB / 354.7 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002717/0.1019, allocations: 159.4 kB / 354.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.001e-05/0.1019, allocations: 36 kB / 354.9 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.511e-05/0.102, allocations: 36 kB / 355 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.029e-05/0.1021, allocations: 79.69 kB / 355 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002141/0.1023, allocations: 171.2 kB / 355.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004432/0.1028, allocations: 434.8 kB / 355.6 MB, free: 14.8 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1028, allocations: 0 / 355.6 MB, free: 14.8 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1028, allocations: 0 / 355.6 MB, free: 14.8 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.398e-05/0.1028, allocations: 4 kB / 355.6 MB, free: 14.8 MB / 302.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.001133/0.104, allocations: 0.6128 MB / 356.3 MB, free: 14.14 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.979e-05/0.104, allocations: 12.03 kB / 356.3 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.408e-05/0.1041, allocations: 66.72 kB / 356.3 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.116e-05/0.1042, allocations: 32.56 kB / 356.4 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003534/0.1045, allocations: 291.5 kB / 356.6 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.825e-05/0.1046, allocations: 20.94 kB / 356.7 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.253e-05/0.1046, allocations: 28.38 kB / 356.7 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005626/0.1052, allocations: 284.7 kB / 357 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.1052, allocations: 3.938 kB / 357 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.892e-05/0.1053, allocations: 11.98 kB / 357 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.1053, allocations: 12 kB / 357 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004495/0.1057, allocations: 198.2 kB / 357.2 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001902/0.1077, allocations: 1.156 MB / 358.3 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005524/0.1082, allocations: 210.6 kB / 358.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003506/0.1086, allocations: 148 kB / 358.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.666e-05/0.1086, allocations: 4 kB / 358.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003531/0.109, allocations: 166.6 kB / 358.9 MB, free: 11.35 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 2.234e-06/0.109, allocations: 4 kB / 358.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001594/0.1106, allocations: 0.5069 MB / 359.4 MB, free: 10.81 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.136e-05/0.1107, allocations: 140.5 kB / 359.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002709/0.111, allocations: 240.9 kB / 359.7 MB, free: 10.4 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.669e-05/0.111, allocations: 33.7 kB / 359.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001064/0.1111, allocations: 164.4 kB / 359.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.581e-05/0.1112, allocations: 82.92 kB / 360 MB, free: 10.11 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.136e-05/0.1113, allocations: 45.7 kB / 360.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.1115, allocations: 334.8 kB / 360.4 MB, free: 9.727 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001736/0.1116, allocations: 75.97 kB / 360.5 MB, free: 9.652 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002103/0.1119, allocations: 129.5 kB / 360.6 MB, free: 9.508 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003337/0.1122, allocations: 171.3 kB / 360.8 MB, free: 9.328 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.1122, allocations: 0 / 360.8 MB, free: 9.328 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005832/0.1128, allocations: 294 kB / 361 MB, free: 9.031 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.1128, allocations: 4 kB / 361.1 MB, free: 9.027 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.539e-05/0.1129, allocations: 7.969 kB / 361.1 MB, free: 9.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003633/0.1132, allocations: 88.91 kB / 361.1 MB, free: 8.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001421/0.1134, allocations: 31.92 kB / 361.2 MB, free: 8.898 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002626/0.116, allocations: 2.142 MB / 363.3 MB, free: 6.613 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002211/0.1163, allocations: 27.83 kB / 363.3 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.008e-05/0.1163, allocations: 8 kB / 363.4 MB, free: 6.578 MB / 302.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.0001519/0.1164, allocations: 150.9 kB / 363.5 MB, free: 6.422 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.518e-05/0.1165, allocations: 31.66 kB / 363.5 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.201e-05/0.1166, allocations: 30.17 kB / 363.6 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.1166, allocations: 8.062 kB / 363.6 MB, free: 6.355 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.1166, allocations: 0 / 363.6 MB, free: 6.355 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.1166, allocations: 7.984 kB / 363.6 MB, free: 6.348 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009168/0.1175, allocations: 0.7661 MB / 364.3 MB, free: 5.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.716e-06/0.1175, allocations: 0 / 364.3 MB, free: 5.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001126/0.1177, allocations: 19.98 kB / 364.4 MB, free: 5.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000278/0.1179, allocations: 100.8 kB / 364.5 MB, free: 5.398 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.878e-05/0.118, allocations: 0 / 364.5 MB, free: 5.398 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002286/0.1203, allocations: 2.15 MB / 366.6 MB, free: 3.109 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.471e-06/0.1203, allocations: 4.031 kB / 366.6 MB, free: 3.105 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006683/0.121, allocations: 458.8 kB / 367.1 MB, free: 2.637 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001142/0.1211, allocations: 117 kB / 367.2 MB, free: 2.504 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.266e-05/0.1211, allocations: 12 kB / 367.2 MB, free: 2.492 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002043/0.1214, allocations: 16.08 kB / 367.2 MB, free: 2.477 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001022/0.1215, allocations: 39.89 kB / 367.2 MB, free: 2.438 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.383e-05/0.1215, allocations: 4 kB / 367.2 MB, free: 2.434 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000162/0.1217, allocations: 176.5 kB / 367.4 MB, free: 2.262 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1217, allocations: 0 / 367.4 MB, free: 2.262 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004786/0.1221, allocations: 95.75 kB / 367.5 MB, free: 2.168 MB / 302.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.0009335/0.1231, allocations: 0.9941 MB / 368.5 MB, free: 1.145 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006567/0.1238, allocations: 366.3 kB / 368.9 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1238, allocations: 0 / 368.9 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003835/0.1242, allocations: 270.5 kB / 369.1 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004142/0.1246, allocations: 56.64 kB / 369.2 MB, free: 452 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.166/0.2906, allocations: 2.761 MB / 371.9 MB, free: 23.99 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000228/0.2909, allocations: 0.7644 MB / 372.7 MB, free: 23.3 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001182/0.291, allocations: 24.83 kB / 372.7 MB, free: 23.29 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001037/0.2911, allocations: 85 kB / 372.8 MB, free: 23.29 MB / 302.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2911, allocations: 2.25 kB / 372.8 MB, free: 23.29 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03705/0.3282, allocations: 7.409 MB / 380.2 MB, free: 22.05 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.13/12.46, allocations: 4.094 kB / 380.2 MB, free: 22.05 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches