Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 120.1 kB / 17.78 MB, free: 5.23 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001276/0.001276, allocations: 198.8 kB / 20.73 MB, free: 2.289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 225.6 MB / 249.1 MB, free: 3.633 MB / 190.1 MB " [Timeout remaining time 178] 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.SimpleTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001513, allocations: 51.92 kB / 365.6 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09474/0.09625, allocations: 52.14 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005934/0.1022, allocations: 4.073 MB / 421.9 MB, free: 8.523 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002055/0.1042, allocations: 1.017 MB / 422.9 MB, free: 7.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001936/0.1044, allocations: 11.94 kB / 422.9 MB, free: 7.488 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002474/0.1047, allocations: 95.12 kB / 423 MB, free: 7.395 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003348/0.105, allocations: 174.5 kB / 423.2 MB, free: 7.223 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005308/0.1055, allocations: 219.7 kB / 423.4 MB, free: 7.008 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008756/0.1064, allocations: 0.8095 MB / 424.2 MB, free: 6.195 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002697/0.1067, allocations: 120.9 kB / 424.3 MB, free: 6.074 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000396/0.1071, allocations: 318.9 kB / 424.6 MB, free: 5.762 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004303/0.1075, allocations: 354.6 kB / 425 MB, free: 5.414 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000105/0.1076, allocations: 80 kB / 425 MB, free: 5.336 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001111/0.1077, allocations: 80 kB / 425.1 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001572/0.1079, allocations: 163.5 kB / 425.3 MB, free: 5.098 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003228/0.1082, allocations: 334.4 kB / 425.6 MB, free: 4.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009002/0.1091, allocations: 0.8407 MB / 426.4 MB, free: 3.926 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.1091, allocations: 0 / 426.4 MB, free: 3.926 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1091, allocations: 0 / 426.4 MB, free: 3.926 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.376e-05/0.1091, allocations: 0 / 426.4 MB, free: 3.926 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002758/0.1119, allocations: 1.049 MB / 427.5 MB, free: 2.816 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.025e-05/0.1119, allocations: 8.031 kB / 427.5 MB, free: 2.809 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001045/0.112, allocations: 70.72 kB / 427.6 MB, free: 2.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001336/0.1122, allocations: 64.56 kB / 427.6 MB, free: 2.668 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006877/0.1129, allocations: 426.2 kB / 428 MB, free: 2.215 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.24e-05/0.1129, allocations: 29.38 kB / 428.1 MB, free: 2.184 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.378e-05/0.113, allocations: 36.38 kB / 428.1 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001481/0.1145, allocations: 0.5991 MB / 428.7 MB, free: 1.523 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.1145, allocations: 0 / 428.7 MB, free: 1.523 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.074e-05/0.1145, allocations: 12 kB / 428.7 MB, free: 1.512 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.1145, allocations: 8 kB / 428.7 MB, free: 1.504 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001959/0.1165, allocations: 0.6245 MB / 429.3 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003837/0.1203, allocations: 2.153 MB / 431.5 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003884/0.1242, allocations: 0.8105 MB / 432.3 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001063/0.1253, allocations: 365.2 kB / 432.7 MB, free: 13.45 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.226e-05/0.1253, allocations: 4.328 kB / 432.7 MB, free: 13.44 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001182/0.1265, allocations: 430.5 kB / 433.1 MB, free: 13 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 2.294e-06/0.1265, allocations: 4 kB / 433.1 MB, free: 13 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.01414/0.1407, allocations: 2.279 MB / 435.4 MB, free: 10.69 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.265e-05/0.1407, allocations: 85.09 kB / 435.5 MB, free: 10.59 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000531/0.1413, allocations: 406 kB / 435.9 MB, free: 10.19 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.988e-05/0.1413, allocations: 33.7 kB / 435.9 MB, free: 10.15 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001966/0.1415, allocations: 240.8 kB / 436.1 MB, free: 9.91 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001389/0.1417, allocations: 138.9 kB / 436.3 MB, free: 9.773 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001782/0.1418, allocations: 74.05 kB / 436.3 MB, free: 9.691 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.142, allocations: 358.7 kB / 436.7 MB, free: 9.332 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009797/0.143, allocations: 292.6 kB / 437 MB, free: 9.047 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009896/0.144, allocations: 334 kB / 437.3 MB, free: 8.715 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001861/0.1458, allocations: 0.5796 MB / 437.9 MB, free: 8.121 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/0.1458, allocations: 0 / 437.9 MB, free: 8.121 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003626/0.1495, allocations: 0.9746 MB / 438.8 MB, free: 7.133 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.732e-05/0.1495, allocations: 33.7 kB / 438.9 MB, free: 7.094 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.1495, allocations: 3.938 kB / 438.9 MB, free: 7.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001251/0.1508, allocations: 396.5 kB / 439.3 MB, free: 6.699 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004792/0.1513, allocations: 87.86 kB / 439.4 MB, free: 6.613 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00851/0.1598, allocations: 3.672 MB / 443 MB, free: 2.797 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007086/0.1605, allocations: 91.88 kB / 443.1 MB, free: 2.707 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.533e-05/0.1605, allocations: 12 kB / 443.1 MB, free: 2.695 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (trapezoidCurrent.signalSource.count,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.signalSource.T_start,simpleTriac.idealDiode1.off,simpleTriac.idealDiode.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * 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 {(4,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0002856/0.1608, allocations: 178.4 kB / 443.3 MB, free: 2.512 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.196e-05/0.1609, allocations: 55.75 kB / 443.4 MB, free: 2.457 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001305/0.161, allocations: 56.45 kB / 443.4 MB, free: 2.402 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.161, allocations: 4 kB / 443.4 MB, free: 2.398 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.161, allocations: 0 / 443.4 MB, free: 2.398 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.637e-06/0.161, allocations: 7.984 kB / 443.4 MB, free: 2.391 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007159/0.1618, allocations: 0.6068 MB / 444 MB, free: 1.734 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.1618, allocations: 0 / 444 MB, free: 1.734 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004914/0.1623, allocations: 83.86 kB / 444.1 MB, free: 1.652 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001145/0.1634, allocations: 392.5 kB / 444.5 MB, free: 1.266 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.335e-05/0.1634, allocations: 8 kB / 444.5 MB, free: 1.258 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1939/0.3573, allocations: 3.657 MB / 448.2 MB, free: 29.61 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.3573, allocations: 1.375 kB / 448.2 MB, free: 29.61 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005502/0.3628, allocations: 1.45 MB / 449.6 MB, free: 29.53 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002589/0.3631, allocations: 181.1 kB / 449.8 MB, free: 29.44 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.406e-05/0.3632, allocations: 11.22 kB / 449.8 MB, free: 29.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005719/0.3637, allocations: 72.88 kB / 449.9 MB, free: 29.44 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000186/0.3639, allocations: 48.62 kB / 449.9 MB, free: 29.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.967e-05/0.364, allocations: 13.84 kB / 449.9 MB, free: 29.44 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003505/0.3643, allocations: 288.5 kB / 450.2 MB, free: 29.35 MB / 366.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3643, allocations: 0 / 450.2 MB, free: 29.35 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006623/0.365, allocations: 179 kB / 450.4 MB, free: 29.34 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,simpleTriac.thyristor.vControl,simpleTriac.thyristor1.vControl) * Number of discrete variables: 5 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.count) * Number of discrete states: 1 (trapezoidCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006174/0.3711, allocations: 2.016 MB / 452.4 MB, free: 28.7 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002778/0.3739, allocations: 0.8994 MB / 453.3 MB, free: 28.51 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.3739, allocations: 0 / 453.3 MB, free: 28.51 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001703/0.3756, allocations: 0.548 MB / 453.9 MB, free: 28.35 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005915/0.3762, allocations: 90.22 kB / 453.9 MB, free: 28.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01438/0.3906, allocations: 5.793 MB / 459.7 MB, free: 25.61 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003223/0.3909, allocations: 0.8398 MB / 460.6 MB, free: 24.9 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000268/0.3912, allocations: 45.23 kB / 460.6 MB, free: 24.88 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002259/0.3914, allocations: 165.4 kB / 460.8 MB, free: 24.76 MB / 366.1 MB Notification: Performance of SimCode: time 1.333e-06/0.3914, allocations: 0 / 460.8 MB, free: 24.76 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04926/0.4407, allocations: 18.39 MB / 479.2 MB, free: 16.2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.83/13.27, allocations: 13.94 kB / 479.2 MB, free: 16.2 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.csv --start-time 0 --stop-time 0.001 --timeout 50 --relative-tolerance 1e-12 --interface-type ModelExchange --solver CVode --output-interval 5e-07 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.888639810029417]