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.001684/0.001684, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001378/0.001378, allocations: 206.6 kB / 23.73 MB, free: 4.379 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.398/1.398, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.001459/0.001459, allocations: 51.92 kB / 377.7 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.254/0.2554, allocations: 53.35 MB / 431.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004212/0.2596, allocations: 2.743 MB / 433.8 MB, free: 3.895 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001333/0.261, allocations: 0.7535 MB / 434.6 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001328/0.2611, allocations: 11.88 kB / 434.6 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001562/0.2613, allocations: 51.5 kB / 434.6 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001909/0.2614, allocations: 107 kB / 434.7 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003193/0.2618, allocations: 115.8 kB / 434.9 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000444/0.2622, allocations: 410.3 kB / 435.3 MB, free: 2.453 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002128/0.2624, allocations: 91.69 kB / 435.3 MB, free: 2.359 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002609/0.2627, allocations: 167.5 kB / 435.5 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002292/0.2629, allocations: 159.3 kB / 435.7 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.186e-05/0.263, allocations: 36 kB / 435.7 MB, free: 2.004 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.325e-05/0.263, allocations: 43.98 kB / 435.7 MB, free: 1.961 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.558e-05/0.2631, allocations: 75.77 kB / 435.8 MB, free: 1.887 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000169/0.2633, allocations: 151.3 kB / 436 MB, free: 1.738 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004988/0.2638, allocations: 442.3 kB / 436.4 MB, free: 1.305 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.2638, allocations: 0 / 436.4 MB, free: 1.305 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2638, allocations: 0 / 436.4 MB, free: 1.305 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.054e-05/0.2638, allocations: 0 / 436.4 MB, free: 1.305 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.001008/0.2648, allocations: 0.5606 MB / 437 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.2649, allocations: 12.03 kB / 437 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.991e-05/0.2649, allocations: 58.73 kB / 437 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001674/0.2651, allocations: 48.69 kB / 437.1 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003848/0.2655, allocations: 234.8 kB / 437.3 MB, free: 340 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.391e-05/0.2655, allocations: 24.88 kB / 437.3 MB, free: 316 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.974e-05/0.2656, allocations: 24.38 kB / 437.4 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005503/0.2661, allocations: 335.2 kB / 437.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.455e-05/0.2661, allocations: 7.969 kB / 437.7 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.015e-05/0.2662, allocations: 12 kB / 437.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.2662, allocations: 4 kB / 437.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00041/0.2666, allocations: 201.9 kB / 437.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001644/0.2682, allocations: 1.043 MB / 438.9 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000484/0.2687, allocations: 204.6 kB / 439.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002782/0.269, allocations: 124.8 kB / 439.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.195e-05/0.269, allocations: 7.938 kB / 439.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003143/0.2693, allocations: 214.1 kB / 439.5 MB, free: 14.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.322e-06/0.2693, allocations: 4 kB / 439.5 MB, free: 14.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001358/0.2707, allocations: 448.9 kB / 439.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.918e-05/0.2708, allocations: 128.5 kB / 440.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002612/0.271, allocations: 245.1 kB / 440.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.897e-05/0.2711, allocations: 29.7 kB / 440.3 MB, free: 13.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001376/0.2712, allocations: 180.6 kB / 440.5 MB, free: 12.94 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.658e-05/0.2713, allocations: 75.38 kB / 440.6 MB, free: 12.87 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.961e-05/0.2713, allocations: 53.73 kB / 440.6 MB, free: 12.81 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.2715, allocations: 330.8 kB / 440.9 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001507/0.2717, allocations: 75.86 kB / 441 MB, free: 12.4 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002284/0.2719, allocations: 181.2 kB / 441.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002934/0.2722, allocations: 163.4 kB / 441.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.2722, allocations: 0 / 441.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005122/0.2727, allocations: 298.1 kB / 441.6 MB, free: 11.72 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.2727, allocations: 4 kB / 441.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.2727, allocations: 4 kB / 441.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003466/0.2731, allocations: 96.72 kB / 441.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001351/0.2732, allocations: 31.92 kB / 441.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002403/0.2756, allocations: 2.012 MB / 443.8 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00021/0.2758, allocations: 31.83 kB / 443.8 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.944e-05/0.2758, allocations: 8 kB / 443.8 MB, free: 9.418 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.0001696/0.276, allocations: 157.8 kB / 444 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.879e-05/0.276, allocations: 31.78 kB / 444 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.088e-05/0.2761, allocations: 26.28 kB / 444 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-06/0.2761, allocations: 4 kB / 444 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.743e-06/0.2761, allocations: 0 / 444 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.2761, allocations: 7.984 kB / 444.1 MB, free: 9.188 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009764/0.2771, allocations: 0.7017 MB / 444.8 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.2771, allocations: 0 / 444.8 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001122/0.2772, allocations: 19.98 kB / 444.8 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002653/0.2775, allocations: 88.83 kB / 444.9 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.985e-05/0.2775, allocations: 8 kB / 444.9 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002353/0.2798, allocations: 2.024 MB / 446.9 MB, free: 6.172 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.2798, allocations: 4.062 kB / 446.9 MB, free: 6.168 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000691/0.2805, allocations: 456.8 kB / 447.3 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.901e-05/0.2806, allocations: 43.81 kB / 447.4 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.019e-05/0.2807, allocations: 8 kB / 447.4 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001974/0.2809, allocations: 11.98 kB / 447.4 MB, free: 5.641 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/0.281, allocations: 35.94 kB / 447.4 MB, free: 5.605 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.418e-05/0.281, allocations: 4 kB / 447.4 MB, free: 5.602 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000181/0.2812, allocations: 180.5 kB / 447.6 MB, free: 5.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2812, allocations: 4.094 kB / 447.6 MB, free: 5.426 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004371/0.2816, allocations: 95.77 kB / 447.7 MB, free: 5.332 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.001046/0.2827, allocations: 0.988 MB / 448.7 MB, free: 4.316 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006565/0.2833, allocations: 350.5 kB / 449 MB, free: 3.961 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2833, allocations: 0 / 449 MB, free: 3.961 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004054/0.2837, allocations: 258.5 kB / 449.3 MB, free: 3.695 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004137/0.2841, allocations: 67.05 kB / 449.4 MB, free: 3.633 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003665/0.2878, allocations: 2.764 MB / 452.1 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001677/0.288, allocations: 163.7 kB / 452.3 MB, free: 0.582 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.195e-05/0.2881, allocations: 22.28 kB / 452.3 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001235/0.2882, allocations: 83.41 kB / 452.4 MB, free: 488 kB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2882, allocations: 0 / 452.4 MB, free: 488 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04351/0.3317, allocations: 8.207 MB / 460.6 MB, free: 8.484 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.01/12.34, allocations: 6.812 kB / 460.6 MB, free: 8.48 MB / 366.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_IdealTriacCircuit_fmu --startTime=0 --stopTime=2 --stepSize=0.00039604 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.830519851006102]