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.001286/0.001286, 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.001538/0.001538, allocations: 205.9 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.536/1.536, allocations: 230.6 MB / 257.5 MB, free: 7.801 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: translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5050,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5050,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001716/0.001716, allocations: 51.92 kB / 378.2 MB, free: 2.445 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2883/0.29, allocations: 53.36 MB / 431.6 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004536/0.2946, allocations: 2.747 MB / 434.3 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001606/0.2962, allocations: 0.7635 MB / 435.1 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001459/0.2963, allocations: 7.938 kB / 435.1 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001703/0.2965, allocations: 47.5 kB / 435.1 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002/0.2967, allocations: 103.1 kB / 435.2 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003307/0.297, allocations: 119.7 kB / 435.4 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004483/0.2975, allocations: 410.3 kB / 435.8 MB, free: 2.484 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002175/0.2977, allocations: 95.33 kB / 435.9 MB, free: 2.391 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002838/0.298, allocations: 159.4 kB / 436 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002517/0.2982, allocations: 167.2 kB / 436.2 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.718e-05/0.2983, allocations: 40 kB / 436.2 MB, free: 2.031 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.212e-05/0.2983, allocations: 36 kB / 436.2 MB, free: 1.996 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.255e-05/0.2984, allocations: 83.75 kB / 436.3 MB, free: 1.914 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001778/0.2986, allocations: 151.3 kB / 436.5 MB, free: 1.766 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005444/0.2991, allocations: 440.9 kB / 436.9 MB, free: 1.336 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.2992, allocations: 0 / 436.9 MB, free: 1.336 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2992, allocations: 0 / 436.9 MB, free: 1.336 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.233e-06/0.2992, allocations: 0 / 436.9 MB, free: 1.336 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.00111/0.3003, allocations: 0.5606 MB / 437.5 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.3003, allocations: 8.031 kB / 437.5 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001923/0.3005, allocations: 44.7 kB / 437.5 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000448/0.3009, allocations: 222.9 kB / 437.7 MB, free: 460 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.655e-05/0.301, allocations: 20.88 kB / 437.8 MB, free: 440 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.43e-05/0.301, allocations: 28.31 kB / 437.8 MB, free: 412 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005873/0.3016, allocations: 347.3 kB / 438.1 MB, free: 36 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.3016, allocations: 0 / 438.1 MB, free: 36 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.298e-05/0.3017, allocations: 15.94 kB / 438.1 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.795e-06/0.3017, allocations: 4 kB / 438.1 MB, free: 16 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004333/0.3021, allocations: 205.8 kB / 438.3 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001745/0.3038, allocations: 0.9852 MB / 439.3 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005365/0.3044, allocations: 202.6 kB / 439.5 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003129/0.3047, allocations: 120.8 kB / 439.6 MB, free: 14.44 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.384e-05/0.3047, allocations: 4 kB / 439.7 MB, free: 14.44 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003276/0.305, allocations: 218.1 kB / 439.9 MB, free: 14.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.563e-06/0.3051, allocations: 0 / 439.9 MB, free: 14.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.00145/0.3065, allocations: 455.8 kB / 440.3 MB, free: 13.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.769e-05/0.3066, allocations: 132.5 kB / 440.4 MB, free: 13.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002722/0.3069, allocations: 236.9 kB / 440.7 MB, free: 13.33 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.917e-05/0.3069, allocations: 29.7 kB / 440.7 MB, free: 13.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001402/0.307, allocations: 176.6 kB / 440.9 MB, free: 13.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.868e-05/0.3071, allocations: 75.38 kB / 440.9 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.67e-05/0.3072, allocations: 49.7 kB / 441 MB, free: 12.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001774/0.3074, allocations: 330.8 kB / 441.3 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001685/0.3076, allocations: 71.97 kB / 441.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002199/0.3078, allocations: 177.3 kB / 441.6 MB, free: 12.39 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003119/0.3081, allocations: 167.4 kB / 441.7 MB, free: 12.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3081, allocations: 0 / 441.7 MB, free: 12.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005287/0.3086, allocations: 286.2 kB / 442 MB, free: 11.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.3087, allocations: 11.92 kB / 442 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.3087, allocations: 3.938 kB / 442 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003677/0.309, allocations: 92.84 kB / 442.1 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001491/0.3092, allocations: 31.98 kB / 442.1 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002583/0.3118, allocations: 1.993 MB / 444.1 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002322/0.312, allocations: 27.91 kB / 444.2 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.005e-05/0.312, allocations: 8 kB / 444.2 MB, free: 9.648 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.000184/0.3122, allocations: 154 kB / 444.3 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.943e-05/0.3122, allocations: 31.8 kB / 444.4 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.615e-05/0.3123, allocations: 26.28 kB / 444.4 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.3123, allocations: 8.047 kB / 444.4 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.234e-06/0.3123, allocations: 3.938 kB / 444.4 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.3123, allocations: 11.98 kB / 444.4 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009597/0.3133, allocations: 0.6476 MB / 445 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.3133, allocations: 0 / 445 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001195/0.3134, allocations: 23.98 kB / 445.1 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002978/0.3137, allocations: 88.73 kB / 445.2 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.191e-05/0.3137, allocations: 8 kB / 445.2 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002325/0.316, allocations: 1.989 MB / 447.2 MB, free: 6.504 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.314e-06/0.316, allocations: 11.95 kB / 447.2 MB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007594/0.3168, allocations: 439.1 kB / 447.6 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001065/0.3169, allocations: 47.8 kB / 447.6 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.071e-05/0.317, allocations: 12.12 kB / 447.7 MB, free: 5.984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000212/0.3172, allocations: 16.08 kB / 447.7 MB, free: 5.969 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.3173, allocations: 43.81 kB / 447.7 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.471e-05/0.3173, allocations: 4 kB / 447.7 MB, free: 5.922 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001658/0.3174, allocations: 172.5 kB / 447.9 MB, free: 5.758 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3175, allocations: 0 / 447.9 MB, free: 5.758 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004867/0.3179, allocations: 91.83 kB / 448 MB, free: 5.668 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.0001514/0.3181, allocations: 108.8 kB / 448.1 MB, free: 5.559 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000719/0.3188, allocations: 362.2 kB / 448.4 MB, free: 5.191 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3188, allocations: 0 / 448.4 MB, free: 5.191 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004395/0.3192, allocations: 250.5 kB / 448.7 MB, free: 4.934 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004269/0.3197, allocations: 55.23 kB / 448.7 MB, free: 4.883 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001228/0.3209, allocations: 0.6015 MB / 449.3 MB, free: 4.258 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001684/0.3211, allocations: 159.5 kB / 449.5 MB, free: 4.082 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.512e-05/0.3212, allocations: 22.28 kB / 449.5 MB, free: 4.059 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.135e-05/0.3212, allocations: 23.38 kB / 449.5 MB, free: 4.035 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3212, allocations: 3.938 kB / 449.5 MB, free: 4.031 MB / 350.1 MB Notification: Performance of Templates: time 0.01045/0.3317, allocations: 4.91 MB / 454.4 MB, free: 15.22 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins/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: 4.889982622116804]