Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00135/0.00135, allocations: 115.5 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00128/0.00128, allocations: 210.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.422/1.422, allocations: 227.7 MB / 247.9 MB, free: 10.2 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001861/0.001861, allocations: 63.91 kB / 359.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2361/0.2379, allocations: 50.55 MB / 410.2 MB, free: 1.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.005542/0.2435, allocations: 3.989 MB / 414.2 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002765/0.2462, allocations: 1.621 MB / 415.8 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002149/0.2465, allocations: 11.94 kB / 415.8 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006944/0.2472, allocations: 242.8 kB / 416.1 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006157/0.2478, allocations: 310.1 kB / 416.4 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005769/0.2483, allocations: 263.4 kB / 416.6 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007545/0.2491, allocations: 0.7163 MB / 417.4 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002425/0.2493, allocations: 124.9 kB / 417.5 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003948/0.2497, allocations: 290.9 kB / 417.8 MB, free: 9.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003591/0.2501, allocations: 294.8 kB / 418.1 MB, free: 9.551 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.973e-05/0.2502, allocations: 52 kB / 418.1 MB, free: 9.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000242/0.2504, allocations: 103.9 kB / 418.2 MB, free: 9.398 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001635/0.2506, allocations: 147.5 kB / 418.4 MB, free: 9.254 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003213/0.2509, allocations: 306.4 kB / 418.7 MB, free: 8.953 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009035/0.2518, allocations: 0.7272 MB / 419.4 MB, free: 8.227 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.2518, allocations: 4 kB / 419.4 MB, free: 8.223 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.2518, allocations: 0 / 419.4 MB, free: 8.223 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.017e-06/0.2518, allocations: 0 / 419.4 MB, free: 8.223 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001837/0.2537, allocations: 0.9641 MB / 420.3 MB, free: 7.199 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.2537, allocations: 12.03 kB / 420.4 MB, free: 7.188 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002499/0.254, allocations: 80.5 kB / 420.4 MB, free: 7.109 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006346/0.2546, allocations: 431 kB / 420.9 MB, free: 6.648 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.831e-05/0.2546, allocations: 29.38 kB / 420.9 MB, free: 6.621 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.834e-05/0.2547, allocations: 44.12 kB / 420.9 MB, free: 6.578 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007724/0.2555, allocations: 437.6 kB / 421.4 MB, free: 6.125 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.2555, allocations: 7.938 kB / 421.4 MB, free: 6.117 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.163e-05/0.2555, allocations: 16 kB / 421.4 MB, free: 6.102 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.228e-05/0.2555, allocations: 12 kB / 421.4 MB, free: 6.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006055/0.2561, allocations: 311.8 kB / 421.7 MB, free: 5.785 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002475/0.2586, allocations: 1.691 MB / 423.4 MB, free: 3.996 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006867/0.2593, allocations: 335 kB / 423.7 MB, free: 3.66 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003034/0.2596, allocations: 155.9 kB / 423.9 MB, free: 3.508 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.183e-05/0.2596, allocations: 4 kB / 423.9 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000472/0.2601, allocations: 266.4 kB / 424.1 MB, free: 3.215 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 1.603e-06/0.2601, allocations: 0 / 424.1 MB, free: 3.215 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002234/0.2623, allocations: 1.018 MB / 425.1 MB, free: 2.105 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001243/0.2625, allocations: 187.9 kB / 425.3 MB, free: 1.879 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006029/0.2631, allocations: 0.5057 MB / 425.8 MB, free: 1.367 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.802e-05/0.2631, allocations: 37.7 kB / 425.9 MB, free: 1.324 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002153/0.2633, allocations: 260.7 kB / 426.1 MB, free: 1.062 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000106/0.2634, allocations: 130.9 kB / 426.3 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001344/0.2636, allocations: 78.12 kB / 426.3 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001761/0.2637, allocations: 362.8 kB / 426.7 MB, free: 500 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002671/0.264, allocations: 120.8 kB / 426.8 MB, free: 380 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003426/0.2644, allocations: 213.2 kB / 427 MB, free: 132 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005211/0.2649, allocations: 269.2 kB / 427.3 MB, free: 15.85 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.2649, allocations: 4 kB / 427.3 MB, free: 15.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008588/0.2657, allocations: 477.2 kB / 427.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.2658, allocations: 4 kB / 427.8 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.862e-06/0.2658, allocations: 0 / 427.8 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005488/0.2663, allocations: 167.4 kB / 427.9 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002214/0.2665, allocations: 39.92 kB / 428 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005827/0.2724, allocations: 6.652 MB / 434.6 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000454/0.2728, allocations: 47.75 kB / 434.7 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.973e-05/0.2728, allocations: 19.94 kB / 434.7 MB, free: 7.879 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: 16 ($PRE.booleanStep1.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,IdealGTOThyristor2.off,IdealThyristor2.off,$PRE.IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEvent,IdealGTOThyristor1.off,IdealThyristor1.fire,IdealThyristor1.off,$PRE.IdealThyristor1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002865/0.2731, allocations: 197.8 kB / 434.9 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.156e-05/0.2732, allocations: 59.56 kB / 434.9 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001232/0.2733, allocations: 64.78 kB / 435 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.2734, allocations: 4.094 kB / 435 MB, free: 7.555 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.2734, allocations: 0 / 435 MB, free: 7.555 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.2734, allocations: 3.984 kB / 435 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005775/0.2739, allocations: 0.4894 MB / 435.5 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.2739, allocations: 0 / 435.5 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001464/0.2741, allocations: 35.91 kB / 435.5 MB, free: 6.977 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004396/0.2745, allocations: 151.3 kB / 435.7 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.804e-05/0.2746, allocations: 11.98 kB / 435.7 MB, free: 6.805 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005648/0.2802, allocations: 6.363 MB / 442 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.2802, allocations: 0 / 442 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001183/0.2814, allocations: 0.4998 MB / 442.5 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002079/0.2816, allocations: 164.7 kB / 442.7 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.351e-05/0.2817, allocations: 16 kB / 442.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003024/0.282, allocations: 35.97 kB / 442.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001432/0.2821, allocations: 47.94 kB / 442.8 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.089e-05/0.2821, allocations: 15.98 kB / 442.8 MB, free: 15.06 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004429/0.2826, allocations: 367.1 kB / 443.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2826, allocations: 0 / 443.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007678/0.2834, allocations: 167.8 kB / 443.3 MB, free: 14.54 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,IdealThyristor1.off,IdealThyristor1.fire,IdealGTOThyristor1.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,IdealGTOThyristor2.off,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 4 (IdealThyristor1.off,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001506/0.2849, allocations: 436.8 kB / 443.8 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001232/0.2861, allocations: 0.7803 MB / 444.5 MB, free: 13.42 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.2861, allocations: 192 / 444.5 MB, free: 13.42 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007745/0.2869, allocations: 0.6429 MB / 445.2 MB, free: 12.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005803/0.2874, allocations: 120.8 kB / 445.3 MB, free: 12.61 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001983/0.2894, allocations: 0.9843 MB / 446.3 MB, free: 11.6 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005471/0.29, allocations: 0.8711 MB / 447.2 MB, free: 10.7 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000177/0.2902, allocations: 52.14 kB / 447.2 MB, free: 10.65 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.294e-05/0.2902, allocations: 35.44 kB / 447.2 MB, free: 10.62 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.2902, allocations: 0 / 447.2 MB, free: 10.62 MB / 366.1 MB Notification: Performance of Templates: time 0.01743/0.3077, allocations: 9.708 MB / 457 MB, free: 1.016 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicThyristors -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches