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.001706/0.001706, allocations: 111 kB / 21.18 MB, free: 0.6758 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.002139/0.002139, allocations: 206.6 kB / 24.47 MB, free: 3.977 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.461/1.461, allocations: 230.6 MB / 258.2 MB, free: 7.781 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.001573/0.001573, allocations: 47.92 kB / 379 MB, free: 2.555 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2318/0.2334, allocations: 53.37 MB / 432.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004274/0.2376, allocations: 2.743 MB / 435.1 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001343/0.239, allocations: 0.7635 MB / 435.8 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001358/0.2391, allocations: 8 kB / 435.8 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001551/0.2393, allocations: 51.44 kB / 435.9 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001951/0.2395, allocations: 103.1 kB / 436 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003197/0.2398, allocations: 111.8 kB / 436.1 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000453/0.2402, allocations: 414.3 kB / 436.5 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002016/0.2404, allocations: 89.66 kB / 436.6 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002492/0.2407, allocations: 175.3 kB / 436.8 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002185/0.2409, allocations: 155.3 kB / 436.9 MB, free: 2.113 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.581e-05/0.241, allocations: 36 kB / 437 MB, free: 2.078 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.316e-05/0.2411, allocations: 43.98 kB / 437 MB, free: 2.035 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.538e-05/0.2411, allocations: 75.7 kB / 437.1 MB, free: 1.961 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000154/0.2413, allocations: 151.4 kB / 437.2 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004941/0.2418, allocations: 438.1 kB / 437.7 MB, free: 1.387 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.2418, allocations: 0 / 437.7 MB, free: 1.387 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2418, allocations: 4 kB / 437.7 MB, free: 1.383 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.262e-06/0.2418, allocations: 0 / 437.7 MB, free: 1.383 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.001064/0.2429, allocations: 0.5567 MB / 438.2 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.2429, allocations: 12.03 kB / 438.2 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001802/0.2431, allocations: 48.69 kB / 438.3 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004055/0.2435, allocations: 226.8 kB / 438.5 MB, free: 500 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.174e-05/0.2435, allocations: 16.88 kB / 438.5 MB, free: 484 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.331e-05/0.2436, allocations: 24.38 kB / 438.5 MB, free: 460 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005996/0.2442, allocations: 351.3 kB / 438.9 MB, free: 80 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.2442, allocations: 0 / 438.9 MB, free: 80 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.059e-05/0.2442, allocations: 8 kB / 438.9 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.41e-05/0.2442, allocations: 8 kB / 438.9 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004326/0.2446, allocations: 209.8 kB / 439.1 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001675/0.2463, allocations: 0.9891 MB / 440.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005211/0.2468, allocations: 204.8 kB / 440.3 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002927/0.2471, allocations: 120.8 kB / 440.4 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.986e-05/0.2472, allocations: 0 / 440.4 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000317/0.2475, allocations: 214.2 kB / 440.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.432e-06/0.2475, allocations: 3.938 kB / 440.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001431/0.2489, allocations: 452.9 kB / 441.1 MB, free: 13.78 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.49e-05/0.249, allocations: 136.5 kB / 441.2 MB, free: 13.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002427/0.2492, allocations: 236.8 kB / 441.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.143e-05/0.2493, allocations: 33.7 kB / 441.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00012/0.2494, allocations: 172.7 kB / 441.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.064e-05/0.2494, allocations: 79.38 kB / 441.7 MB, free: 13.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.764e-05/0.2495, allocations: 45.7 kB / 441.7 MB, free: 13.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.2497, allocations: 330.8 kB / 442.1 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000161/0.2498, allocations: 75.97 kB / 442.1 MB, free: 12.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002242/0.2501, allocations: 173.3 kB / 442.3 MB, free: 12.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002979/0.2504, allocations: 163.4 kB / 442.5 MB, free: 12.26 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.2504, allocations: 4.031 kB / 442.5 MB, free: 12.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005104/0.2509, allocations: 286.2 kB / 442.8 MB, free: 11.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.2509, allocations: 11.94 kB / 442.8 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.2509, allocations: 0 / 442.8 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003426/0.2512, allocations: 92.69 kB / 442.9 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001357/0.2514, allocations: 31.92 kB / 442.9 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002394/0.2538, allocations: 1.989 MB / 444.9 MB, free: 9.734 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002119/0.254, allocations: 35.86 kB / 444.9 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.798e-05/0.254, allocations: 4.062 kB / 444.9 MB, free: 9.695 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.0001757/0.2542, allocations: 161.9 kB / 445.1 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.518e-05/0.2542, allocations: 23.86 kB / 445.1 MB, free: 9.504 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.37e-05/0.2543, allocations: 30.28 kB / 445.1 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-06/0.2543, allocations: 3.938 kB / 445.1 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.715e-06/0.2543, allocations: 7.984 kB / 445.1 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.2543, allocations: 112 / 445.1 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009622/0.2553, allocations: 0.6592 MB / 445.8 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.2553, allocations: 0 / 445.8 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001154/0.2554, allocations: 24.03 kB / 445.8 MB, free: 8.738 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002751/0.2557, allocations: 92.67 kB / 445.9 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.779e-05/0.2557, allocations: 4 kB / 445.9 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002304/0.258, allocations: 1.997 MB / 447.9 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.258, allocations: 7.875 kB / 447.9 MB, free: 6.531 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006783/0.2587, allocations: 443.5 kB / 448.4 MB, free: 6.078 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.947e-05/0.2588, allocations: 39.95 kB / 448.4 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.934e-05/0.2588, allocations: 11.94 kB / 448.4 MB, free: 6.027 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002036/0.259, allocations: 11.98 kB / 448.4 MB, free: 6.016 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.933e-05/0.2591, allocations: 40 kB / 448.5 MB, free: 5.977 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.664e-05/0.2591, allocations: 11.98 kB / 448.5 MB, free: 5.965 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001668/0.2593, allocations: 172.5 kB / 448.6 MB, free: 5.801 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2593, allocations: 0 / 448.6 MB, free: 5.801 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004574/0.2597, allocations: 91.83 kB / 448.7 MB, free: 5.711 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.0001258/0.2599, allocations: 107.2 kB / 448.8 MB, free: 5.598 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006662/0.2605, allocations: 358.2 kB / 449.2 MB, free: 5.234 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.2605, allocations: 0 / 449.2 MB, free: 5.234 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004141/0.2609, allocations: 256.7 kB / 449.4 MB, free: 4.973 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003844/0.2613, allocations: 62.48 kB / 449.5 MB, free: 4.918 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001105/0.2624, allocations: 0.5944 MB / 450.1 MB, free: 4.297 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001508/0.2626, allocations: 163.5 kB / 450.2 MB, free: 4.117 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.337e-05/0.2627, allocations: 18.3 kB / 450.3 MB, free: 4.098 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.004e-05/0.2627, allocations: 19.44 kB / 450.3 MB, free: 4.078 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2627, allocations: 3.938 kB / 450.3 MB, free: 4.074 MB / 350.1 MB Notification: Performance of Templates: time 0.009192/0.2719, allocations: 4.904 MB / 455.2 MB, free: 15.27 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 -s gbode -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/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: 4.5583076569892]