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.001329/0.001329, 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.001337/0.001337, allocations: 182.9 kB / 23.71 MB, free: 4.695 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.445/1.445, allocations: 225.6 MB / 252.5 MB, free: 13 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: 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.0.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.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 39.92 kB / 370.9 MB, free: 9.438 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2968/0.2983, allocations: 52.18 MB / 423.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004767/0.3031, allocations: 2.943 MB / 426.1 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001294/0.3044, allocations: 0.7478 MB / 426.8 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001274/0.3045, allocations: 4 kB / 426.8 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001597/0.3047, allocations: 55.5 kB / 426.9 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001965/0.3049, allocations: 99.06 kB / 427 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003168/0.3052, allocations: 103.8 kB / 427.1 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005158/0.3057, allocations: 406.3 kB / 427.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00029/0.306, allocations: 91.67 kB / 427.5 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002464/0.3062, allocations: 163.4 kB / 427.7 MB, free: 10.06 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002492/0.3065, allocations: 159.3 kB / 427.9 MB, free: 9.906 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.401e-05/0.3066, allocations: 40 kB / 427.9 MB, free: 9.867 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.452e-05/0.3066, allocations: 36 kB / 427.9 MB, free: 9.832 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.345e-05/0.3067, allocations: 83.69 kB / 428 MB, free: 9.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001897/0.3069, allocations: 171.2 kB / 428.2 MB, free: 9.582 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005471/0.3075, allocations: 435.6 kB / 428.6 MB, free: 9.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.3075, allocations: 0 / 428.6 MB, free: 9.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3075, allocations: 0 / 428.6 MB, free: 9.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.945e-06/0.3075, allocations: 3.938 kB / 428.6 MB, free: 9.156 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.001275/0.3087, allocations: 0.5489 MB / 429.2 MB, free: 8.574 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.117e-05/0.3088, allocations: 12.03 kB / 429.2 MB, free: 8.562 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001064/0.3089, allocations: 32.75 kB / 429.2 MB, free: 8.531 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005789/0.3095, allocations: 237.8 kB / 429.4 MB, free: 8.273 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.495e-05/0.3095, allocations: 20.88 kB / 429.5 MB, free: 8.254 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.493e-05/0.3096, allocations: 24.38 kB / 429.5 MB, free: 8.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005821/0.3102, allocations: 291.9 kB / 429.8 MB, free: 7.93 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.3102, allocations: 0 / 429.8 MB, free: 7.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.45e-05/0.3102, allocations: 12 kB / 429.8 MB, free: 7.918 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.3102, allocations: 8 kB / 429.8 MB, free: 7.91 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004274/0.3106, allocations: 197.9 kB / 430 MB, free: 7.719 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002173/0.3128, allocations: 1.106 MB / 431.1 MB, free: 6.535 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000575/0.3134, allocations: 213.8 kB / 431.3 MB, free: 6.32 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003176/0.3137, allocations: 120.8 kB / 431.4 MB, free: 6.199 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.734e-05/0.3137, allocations: 8 kB / 431.4 MB, free: 6.191 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003473/0.3141, allocations: 164.6 kB / 431.6 MB, free: 6.008 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.924e-06/0.3141, allocations: 3.938 kB / 431.6 MB, free: 6.004 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.001491/0.3156, allocations: 435.7 kB / 432 MB, free: 5.57 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001034/0.3157, allocations: 144.4 kB / 432.2 MB, free: 5.398 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002826/0.316, allocations: 241 kB / 432.4 MB, free: 5.152 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.791e-05/0.316, allocations: 29.7 kB / 432.4 MB, free: 5.117 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001406/0.3161, allocations: 176.6 kB / 432.6 MB, free: 4.941 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.9e-05/0.3162, allocations: 75.39 kB / 432.7 MB, free: 4.867 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/0.3163, allocations: 45.7 kB / 432.7 MB, free: 4.816 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001929/0.3165, allocations: 330.8 kB / 433 MB, free: 4.484 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001787/0.3167, allocations: 75.97 kB / 433.1 MB, free: 4.41 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000212/0.3169, allocations: 129 kB / 433.2 MB, free: 4.266 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003375/0.3172, allocations: 171.3 kB / 433.4 MB, free: 4.086 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.3172, allocations: 3.938 kB / 433.4 MB, free: 4.082 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005634/0.3178, allocations: 294.2 kB / 433.7 MB, free: 3.785 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.3178, allocations: 4 kB / 433.7 MB, free: 3.781 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.3178, allocations: 0 / 433.7 MB, free: 3.781 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004263/0.3183, allocations: 84.81 kB / 433.8 MB, free: 3.695 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001644/0.3184, allocations: 35.92 kB / 433.8 MB, free: 3.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002764/0.3212, allocations: 2.035 MB / 435.8 MB, free: 1.508 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002605/0.3215, allocations: 31.86 kB / 435.9 MB, free: 1.477 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.376e-05/0.3215, allocations: 12 kB / 435.9 MB, free: 1.465 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.0002359/0.3217, allocations: 150.5 kB / 436 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.236e-05/0.3218, allocations: 31.78 kB / 436.1 MB, free: 1.277 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.703e-05/0.3218, allocations: 30.27 kB / 436.1 MB, free: 1.25 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.3218, allocations: 4 kB / 436.1 MB, free: 1.246 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/0.3218, allocations: 0 / 436.1 MB, free: 1.246 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.3219, allocations: 3.984 kB / 436.1 MB, free: 1.242 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001077/0.3229, allocations: 0.7367 MB / 436.8 MB, free: 460 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.96e-06/0.3229, allocations: 4.031 kB / 436.8 MB, free: 456 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001204/0.3231, allocations: 19.98 kB / 436.9 MB, free: 436 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002732/0.3233, allocations: 88.73 kB / 437 MB, free: 344 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.155e-05/0.3233, allocations: 8 kB / 437 MB, free: 336 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0025/0.3258, allocations: 2.036 MB / 439 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3258, allocations: 8 kB / 439 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007491/0.3266, allocations: 444.7 kB / 439.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001172/0.3267, allocations: 55.69 kB / 439.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.893e-05/0.3268, allocations: 4 kB / 439.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002297/0.327, allocations: 20.05 kB / 439.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/0.3271, allocations: 35.94 kB / 439.6 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.583e-05/0.3271, allocations: 7.984 kB / 439.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001978/0.3273, allocations: 180.5 kB / 439.7 MB, free: 13.42 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3273, allocations: 0 / 439.7 MB, free: 13.42 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004578/0.3278, allocations: 87.89 kB / 439.8 MB, free: 13.33 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.0001283/0.3279, allocations: 107.3 kB / 439.9 MB, free: 13.22 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007478/0.3286, allocations: 358.4 kB / 440.3 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.3286, allocations: 4 kB / 440.3 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004406/0.3291, allocations: 254.5 kB / 440.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004604/0.3295, allocations: 70.53 kB / 440.6 MB, free: 12.53 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001257/0.3308, allocations: 0.6052 MB / 441.2 MB, free: 11.9 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004454/0.3312, allocations: 0.7636 MB / 442 MB, free: 11.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001023/0.3313, allocations: 18.28 kB / 442 MB, free: 11.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.245e-05/0.3314, allocations: 23.44 kB / 442 MB, free: 11.07 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3314, allocations: 0 / 442 MB, free: 11.07 MB / 350.1 MB Notification: Performance of Templates: time 0.01075/0.3422, allocations: 5.11 MB / 447.1 MB, free: 6.027 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.711096347309649]