Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_4.0.0_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.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002088/0.002088, allocations: 108.5 kB / 17.16 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002609/0.002609, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.539/2.539, allocations: 222.9 MB / 241.8 MB, free: 13.71 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00171/0.00171, allocations: 42.86 kB / 300.6 MB, free: 6.074 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1291/0.1309, allocations: 49.46 MB / 350.1 MB, free: 4.613 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.006571/0.1375, allocations: 3.984 MB / 354 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003208/0.1408, allocations: 1.418 MB / 355.5 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006613/0.1414, allocations: 7.938 kB / 355.5 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00113/0.1427, allocations: 224.3 kB / 355.7 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000983/0.1437, allocations: 222.7 kB / 355.9 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009145/0.1446, allocations: 256.4 kB / 356.2 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001015/0.1457, allocations: 0.689 MB / 356.8 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003163/0.146, allocations: 149.7 kB / 357 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003887/0.1464, allocations: 255 kB / 357.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003293/0.1467, allocations: 282.8 kB / 357.5 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.585e-05/0.1468, allocations: 32 kB / 357.5 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002271/0.147, allocations: 71.92 kB / 357.6 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001768/0.1472, allocations: 131.5 kB / 357.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002948/0.1475, allocations: 282.4 kB / 358 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005488/0.1481, allocations: 0.5144 MB / 358.5 MB, free: 12.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.1481, allocations: 0 / 358.5 MB, free: 12.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1481, allocations: 0 / 358.5 MB, free: 12.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.267e-06/0.1481, allocations: 0 / 358.5 MB, free: 12.09 MB / 302.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.001708/0.1498, allocations: 0.9375 MB / 359.5 MB, free: 11.1 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.1499, allocations: 11.97 kB / 359.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001289/0.15, allocations: 68.19 kB / 359.6 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005487/0.1506, allocations: 402.8 kB / 359.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.793e-05/0.1506, allocations: 33.31 kB / 360 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.354e-05/0.1507, allocations: 44.11 kB / 360 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008187/0.1515, allocations: 441.6 kB / 360.5 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.1516, allocations: 0 / 360.5 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.058e-05/0.1516, allocations: 16 kB / 360.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.506e-05/0.1516, allocations: 11.94 kB / 360.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000677/0.1523, allocations: 315.8 kB / 360.8 MB, free: 9.719 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002663/0.155, allocations: 1.703 MB / 362.5 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007896/0.1558, allocations: 374.9 kB / 362.9 MB, free: 7.539 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003688/0.1562, allocations: 185.4 kB / 363 MB, free: 7.355 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.598e-05/0.1562, allocations: 4 kB / 363 MB, free: 7.352 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005235/0.1568, allocations: 262.4 kB / 363.3 MB, free: 7.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.004e-06/0.1568, allocations: 3.938 kB / 363.3 MB, free: 7.066 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002619/0.1594, allocations: 1.017 MB / 364.3 MB, free: 5.957 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001463/0.1596, allocations: 195.8 kB / 364.5 MB, free: 5.723 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000688/0.1603, allocations: 0.494 MB / 365 MB, free: 5.219 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.099e-05/0.1603, allocations: 33.7 kB / 365 MB, free: 5.18 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002499/0.1606, allocations: 256.4 kB / 365.3 MB, free: 4.922 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001179/0.1607, allocations: 122.3 kB / 365.4 MB, free: 4.801 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/0.1609, allocations: 78.05 kB / 365.5 MB, free: 4.719 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001791/0.1611, allocations: 358.8 kB / 365.8 MB, free: 4.359 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002699/0.1613, allocations: 124.8 kB / 366 MB, free: 4.238 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003607/0.1617, allocations: 213.3 kB / 366.2 MB, free: 4 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005195/0.1622, allocations: 273.1 kB / 366.4 MB, free: 3.723 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.1622, allocations: 0 / 366.4 MB, free: 3.723 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008859/0.1631, allocations: 484.7 kB / 366.9 MB, free: 3.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.1632, allocations: 8.094 kB / 366.9 MB, free: 3.223 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.1632, allocations: 0 / 366.9 MB, free: 3.223 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005827/0.1638, allocations: 159.3 kB / 367.1 MB, free: 3.055 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002308/0.164, allocations: 47.91 kB / 367.1 MB, free: 3.008 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2467/0.4107, allocations: 5.944 MB / 373.1 MB, free: 21.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009188/0.4117, allocations: 54.31 kB / 373.1 MB, free: 21.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.045e-05/0.4118, allocations: 12.89 kB / 373.1 MB, free: 21.7 MB / 302.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.0005273/0.4123, allocations: 193.7 kB / 373.3 MB, free: 21.58 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001981/0.4126, allocations: 49.98 kB / 373.4 MB, free: 21.58 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001808/0.4127, allocations: 60.48 kB / 373.4 MB, free: 21.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.107e-06/0.4128, allocations: 5.25 kB / 373.4 MB, free: 21.57 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.748e-06/0.4128, allocations: 3.891 kB / 373.4 MB, free: 21.57 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.154e-05/0.4128, allocations: 7.656 kB / 373.4 MB, free: 21.57 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001106/0.4139, allocations: 491.6 kB / 373.9 MB, free: 21.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.181e-06/0.414, allocations: 0.5156 kB / 373.9 MB, free: 21.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002518/0.4142, allocations: 28.11 kB / 373.9 MB, free: 21.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008003/0.415, allocations: 157.3 kB / 374.1 MB, free: 21.35 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.805e-05/0.4151, allocations: 7.578 kB / 374.1 MB, free: 21.35 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006721/0.4218, allocations: 5.801 MB / 379.9 MB, free: 16.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.4219, allocations: 0 / 379.9 MB, free: 16.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00194/0.4238, allocations: 0.5061 MB / 380.4 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003489/0.4242, allocations: 159.3 kB / 380.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001188/0.4243, allocations: 11.8 kB / 380.6 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005002/0.4249, allocations: 32.69 kB / 380.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002769/0.4252, allocations: 57.61 kB / 380.7 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.946e-05/0.4252, allocations: 12.81 kB / 380.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008168/0.4261, allocations: 361.4 kB / 381 MB, free: 15.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4261, allocations: 7.75 kB / 381 MB, free: 15.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001689/0.4278, allocations: 160 kB / 381.2 MB, free: 15.44 MB / 302.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.001757/0.4295, allocations: 432.8 kB / 381.6 MB, free: 15.29 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001885/0.4315, allocations: 0.7979 MB / 382.4 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.175e-06/0.4315, allocations: 4 kB / 382.4 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001076/0.4326, allocations: 0.6502 MB / 383.1 MB, free: 14.17 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001111/0.4337, allocations: 117 kB / 383.2 MB, free: 14.12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003508/0.4372, allocations: 1.18 MB / 384.4 MB, free: 13.41 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006124/0.4379, allocations: 0.8619 MB / 385.2 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001797/0.4381, allocations: 35.47 kB / 385.3 MB, free: 12.69 MB / 302.1 MB Notification: Performance of SimCode: time 1.252e-06/0.4381, allocations: 0 / 385.3 MB, free: 12.69 MB / 302.1 MB Notification: Performance of Templates: time 0.03262/0.4707, allocations: 14.63 MB / 399.9 MB, free: 6.613 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches