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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001889/0.001889, allocations: 109.5 kB / 20.43 MB, free: 1.457 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.002178/0.002178, allocations: 181.7 kB / 23.72 MB, free: 4.699 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.398/1.398, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001532/0.001532, allocations: 47.92 kB / 370.4 MB, free: 9.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2319/0.2334, allocations: 52.18 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004232/0.2377, allocations: 2.951 MB / 425.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001251/0.2389, allocations: 0.7417 MB / 426.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001306/0.239, allocations: 7.938 kB / 426.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001592/0.2392, allocations: 51.5 kB / 426.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001924/0.2394, allocations: 95.12 kB / 426.5 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002801/0.2397, allocations: 103.8 kB / 426.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004632/0.2401, allocations: 414.3 kB / 427 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001963/0.2403, allocations: 87.69 kB / 427.1 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002852/0.2406, allocations: 167.4 kB / 427.2 MB, free: 9.977 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003293/0.2409, allocations: 155.4 kB / 427.4 MB, free: 9.824 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.15e-05/0.241, allocations: 36 kB / 427.4 MB, free: 9.789 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.034e-05/0.2411, allocations: 36 kB / 427.5 MB, free: 9.754 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.959e-05/0.2412, allocations: 79.73 kB / 427.5 MB, free: 9.676 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001794/0.2414, allocations: 179.1 kB / 427.7 MB, free: 9.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005001/0.2419, allocations: 434.3 kB / 428.1 MB, free: 9.074 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.2419, allocations: 0 / 428.1 MB, free: 9.074 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2419, allocations: 4 kB / 428.1 MB, free: 9.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.662e-06/0.2419, allocations: 0 / 428.1 MB, free: 9.07 MB / 334.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.001076/0.243, allocations: 0.5528 MB / 428.7 MB, free: 8.484 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.243, allocations: 12.03 kB / 428.7 MB, free: 8.473 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.252e-05/0.2431, allocations: 62.72 kB / 428.8 MB, free: 8.402 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.154e-05/0.2432, allocations: 36.75 kB / 428.8 MB, free: 8.367 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004084/0.2436, allocations: 225.9 kB / 429 MB, free: 8.121 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.959e-05/0.2436, allocations: 16.88 kB / 429 MB, free: 8.105 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.862e-05/0.2436, allocations: 28.38 kB / 429.1 MB, free: 8.078 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005333/0.2442, allocations: 287.7 kB / 429.3 MB, free: 7.781 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.181e-05/0.2442, allocations: 4 kB / 429.3 MB, free: 7.777 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.97e-05/0.2442, allocations: 8 kB / 429.4 MB, free: 7.77 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.2442, allocations: 8 kB / 429.4 MB, free: 7.762 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004285/0.2447, allocations: 205.8 kB / 429.6 MB, free: 7.562 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001939/0.2466, allocations: 1.109 MB / 430.7 MB, free: 6.375 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005785/0.2472, allocations: 206.6 kB / 430.9 MB, free: 6.164 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002907/0.2475, allocations: 124.8 kB / 431 MB, free: 6.039 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.098e-05/0.2475, allocations: 0 / 431 MB, free: 6.039 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002987/0.2478, allocations: 166.7 kB / 431.2 MB, free: 5.852 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.323e-06/0.2478, allocations: 4 kB / 431.2 MB, free: 5.848 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.001403/0.2492, allocations: 439.7 kB / 431.6 MB, free: 5.41 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.175e-05/0.2493, allocations: 136.5 kB / 431.7 MB, free: 5.246 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002652/0.2496, allocations: 241 kB / 432 MB, free: 5 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.158e-05/0.2496, allocations: 33.7 kB / 432 MB, free: 4.961 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/0.2497, allocations: 168.6 kB / 432.2 MB, free: 4.793 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.771e-05/0.2498, allocations: 83.3 kB / 432.2 MB, free: 4.711 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.02e-05/0.2499, allocations: 49.7 kB / 432.3 MB, free: 4.656 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.25, allocations: 334.8 kB / 432.6 MB, free: 4.32 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001591/0.2502, allocations: 71.92 kB / 432.7 MB, free: 4.25 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002011/0.2504, allocations: 125.1 kB / 432.8 MB, free: 4.109 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003022/0.2507, allocations: 171.4 kB / 433 MB, free: 3.93 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2507, allocations: 0 / 433 MB, free: 3.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006122/0.2513, allocations: 286.2 kB / 433.3 MB, free: 3.641 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.2513, allocations: 4 kB / 433.3 MB, free: 3.637 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.2513, allocations: 0 / 433.3 MB, free: 3.637 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003319/0.2517, allocations: 88.89 kB / 433.3 MB, free: 3.547 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001382/0.2518, allocations: 35.92 kB / 433.4 MB, free: 3.512 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00262/0.2544, allocations: 2.039 MB / 435.4 MB, free: 1.355 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002119/0.2546, allocations: 31.86 kB / 435.4 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.961e-05/0.2546, allocations: 16.06 kB / 435.5 MB, free: 1.309 MB / 334.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.0001652/0.2548, allocations: 147.2 kB / 435.6 MB, free: 1.156 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.657e-05/0.2549, allocations: 31.78 kB / 435.6 MB, free: 1.125 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.073e-05/0.2549, allocations: 30.27 kB / 435.7 MB, free: 1.098 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.2549, allocations: 4 kB / 435.7 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.2549, allocations: 0 / 435.7 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.2549, allocations: 0 / 435.7 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001115/0.256, allocations: 0.7423 MB / 436.4 MB, free: 304 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.256, allocations: 3.984 kB / 436.4 MB, free: 300 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001087/0.2562, allocations: 16 kB / 436.4 MB, free: 284 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002552/0.2564, allocations: 84.8 kB / 436.5 MB, free: 196 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.978e-05/0.2564, allocations: 8 kB / 436.5 MB, free: 188 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002404/0.2588, allocations: 2.04 MB / 438.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.2588, allocations: 0 / 438.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006891/0.2595, allocations: 455.3 kB / 439 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001029/0.2596, allocations: 55.66 kB / 439.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.978e-05/0.2597, allocations: 12.12 kB / 439.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002165/0.2599, allocations: 15.98 kB / 439.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.741e-05/0.26, allocations: 35.94 kB / 439.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.395e-05/0.26, allocations: 4 kB / 439.1 MB, free: 13.44 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001824/0.2602, allocations: 180.5 kB / 439.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2602, allocations: 0 / 439.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004527/0.2606, allocations: 87.89 kB / 439.4 MB, free: 13.18 MB / 350.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.00118/0.2618, allocations: 0.9979 MB / 440.4 MB, free: 12.15 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000765/0.2626, allocations: 358.4 kB / 440.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.2626, allocations: 0 / 440.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005043/0.2631, allocations: 254.5 kB / 441 MB, free: 11.53 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004114/0.2635, allocations: 57.03 kB / 441 MB, free: 11.47 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003941/0.2674, allocations: 2.764 MB / 443.8 MB, free: 8.613 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004369/0.2679, allocations: 0.7635 MB / 444.6 MB, free: 7.824 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.25e-05/0.268, allocations: 22.3 kB / 444.6 MB, free: 7.801 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001252/0.2681, allocations: 83.41 kB / 444.7 MB, free: 7.719 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2681, allocations: 0 / 444.7 MB, free: 7.719 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04246/0.3106, allocations: 7.8 MB / 452.5 MB, free: 108 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.48/12.79, allocations: 14.27 kB / 452.5 MB, free: 96 kB / 350.1 MB " [Timeout remaining time 647] (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.00039604 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "Error: Could not read variable idealTriac.idealThyristor.off in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv. Warning: Get data of variable idealTriac.idealThyristor.off from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv failed! Error: Could not read variable idealTriac.idealThyristor1.off in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv. Warning: Get data of variable idealTriac.idealThyristor1.off from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.359592224998778]