Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001477/0.001477, allocations: 210.3 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.422/1.422, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 47.91 kB / 377.7 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2522/0.2537, allocations: 53.37 MB / 431.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004554/0.2582, allocations: 2.735 MB / 433.8 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001569/0.2598, allocations: 0.7651 MB / 434.6 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001692/0.26, allocations: 7.938 kB / 434.6 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001711/0.2601, allocations: 47.5 kB / 434.6 MB, free: 3.082 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002056/0.2603, allocations: 107.1 kB / 434.7 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003722/0.2607, allocations: 111.8 kB / 434.9 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004686/0.2612, allocations: 418.3 kB / 435.3 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002248/0.2614, allocations: 91.67 kB / 435.4 MB, free: 2.363 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002638/0.2617, allocations: 151.5 kB / 435.5 MB, free: 2.215 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002278/0.2619, allocations: 171.2 kB / 435.7 MB, free: 2.047 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.383e-05/0.262, allocations: 36 kB / 435.7 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.782e-05/0.2621, allocations: 40 kB / 435.7 MB, free: 1.973 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.198e-05/0.2621, allocations: 75.75 kB / 435.8 MB, free: 1.898 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001653/0.2623, allocations: 151.3 kB / 436 MB, free: 1.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005267/0.2628, allocations: 446.2 kB / 436.4 MB, free: 1.312 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.2628, allocations: 0 / 436.4 MB, free: 1.312 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2628, allocations: 4 kB / 436.4 MB, free: 1.309 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.2628, allocations: 0 / 436.4 MB, free: 1.309 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.001043/0.2639, allocations: 0.5489 MB / 437 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.2639, allocations: 11.97 kB / 437 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.612e-05/0.264, allocations: 70.72 kB / 437 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001712/0.2642, allocations: 44.7 kB / 437.1 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004452/0.2646, allocations: 238.8 kB / 437.3 MB, free: 344 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.842e-05/0.2646, allocations: 16.88 kB / 437.3 MB, free: 328 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.156e-05/0.2647, allocations: 24.38 kB / 437.4 MB, free: 304 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005563/0.2652, allocations: 343.1 kB / 437.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.2652, allocations: 0 / 437.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.856e-05/0.2653, allocations: 8 kB / 437.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.09e-05/0.2653, allocations: 8 kB / 437.7 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003988/0.2657, allocations: 209.8 kB / 437.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001643/0.2673, allocations: 1.039 MB / 438.9 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004904/0.2678, allocations: 194.7 kB / 439.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002973/0.2681, allocations: 124.8 kB / 439.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.356e-05/0.2681, allocations: 7.938 kB / 439.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003293/0.2685, allocations: 218 kB / 439.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.823e-06/0.2685, allocations: 0 / 439.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001356/0.2698, allocations: 448.9 kB / 439.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.649e-05/0.2699, allocations: 132.5 kB / 440 MB, free: 13.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002654/0.2702, allocations: 245.1 kB / 440.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.858e-05/0.2702, allocations: 33.7 kB / 440.3 MB, free: 13.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000128/0.2703, allocations: 176.7 kB / 440.5 MB, free: 12.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.62e-05/0.2704, allocations: 75.38 kB / 440.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.653e-05/0.2705, allocations: 45.7 kB / 440.6 MB, free: 12.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.2707, allocations: 338.8 kB / 440.9 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002526/0.2709, allocations: 67.97 kB / 441 MB, free: 12.42 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002294/0.2712, allocations: 185.2 kB / 441.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000296/0.2715, allocations: 163.5 kB / 441.3 MB, free: 12.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.2715, allocations: 0 / 441.3 MB, free: 12.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00055/0.272, allocations: 294 kB / 441.6 MB, free: 11.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.272, allocations: 4 kB / 441.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.272, allocations: 0 / 441.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003306/0.2724, allocations: 88.81 kB / 441.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001323/0.2725, allocations: 27.92 kB / 441.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002445/0.2749, allocations: 2.027 MB / 443.8 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001996/0.2751, allocations: 39.84 kB / 443.8 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.7e-05/0.2752, allocations: 8.062 kB / 443.8 MB, free: 9.426 MB / 350.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.0001775/0.2753, allocations: 149.8 kB / 444 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.399e-05/0.2754, allocations: 31.8 kB / 444 MB, free: 9.238 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.494e-05/0.2755, allocations: 34.27 kB / 444 MB, free: 9.207 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.828e-06/0.2755, allocations: 7.938 kB / 444 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.2755, allocations: 4 kB / 444.1 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.2755, allocations: 0 / 444.1 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009859/0.2764, allocations: 0.6978 MB / 444.7 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.2765, allocations: 4.031 kB / 444.8 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001106/0.2766, allocations: 23.98 kB / 444.8 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000264/0.2768, allocations: 88.84 kB / 444.9 MB, free: 8.324 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.791e-05/0.2768, allocations: 4 kB / 444.9 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002284/0.2791, allocations: 2.023 MB / 446.9 MB, free: 6.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.2791, allocations: 0 / 446.9 MB, free: 6.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006833/0.2798, allocations: 451.5 kB / 447.3 MB, free: 5.719 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001079/0.2799, allocations: 47.78 kB / 447.4 MB, free: 5.672 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.871e-05/0.28, allocations: 8 kB / 447.4 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000191/0.2802, allocations: 15.98 kB / 447.4 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000101/0.2803, allocations: 40.06 kB / 447.4 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.476e-05/0.2803, allocations: 4.109 kB / 447.4 MB, free: 5.605 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000184/0.2805, allocations: 180.4 kB / 447.6 MB, free: 5.434 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2805, allocations: 0 / 447.6 MB, free: 5.434 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004551/0.2809, allocations: 95.83 kB / 447.7 MB, free: 5.34 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.001011/0.2819, allocations: 0.9837 MB / 448.7 MB, free: 4.328 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000695/0.2826, allocations: 358.3 kB / 449 MB, free: 3.965 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2826, allocations: 0 / 449 MB, free: 3.965 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003987/0.283, allocations: 253.5 kB / 449.3 MB, free: 3.707 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004036/0.2834, allocations: 61.06 kB / 449.4 MB, free: 3.648 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003721/0.2871, allocations: 2.771 MB / 452.1 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00016/0.2873, allocations: 155.8 kB / 452.3 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001025/0.2874, allocations: 30.27 kB / 452.3 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001574/0.2876, allocations: 83.41 kB / 452.4 MB, free: 496 kB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.2876, allocations: 3.938 kB / 452.4 MB, free: 492 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04088/0.3284, allocations: 8.213 MB / 460.6 MB, free: 8.488 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.16/12.48, allocations: 2.812 kB / 460.6 MB, free: 8.488 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Warning: Resultfile and Reference have different end time points! Reffile[5050]=2.000000 File[853057]=0.236304 Error: Could not read variable idealTriac.idealThyristor.off in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv. Warning: Get data of variable idealTriac.idealThyristor.off from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv failed! Error: Could not read variable idealTriac.idealThyristor1.off in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv. Warning: Get data of variable idealTriac.idealThyristor1.off from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv failed! " [Timeout remaining time 658] "" Variables in the reference:time,idealTriac.capacitor.v,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off Variables in the result:time,idealTriac.capacitor.v [Calling sys.exit(0), Time elapsed: 68.56350603199098]