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.002016/0.002016, allocations: 115.5 kB / 17.69 MB, free: 5.305 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.002238/0.002238, allocations: 192 kB / 18.63 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.553/1.553, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001573/0.001573, allocations: 50.47 kB / 302.1 MB, free: 5.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1368, allocations: 49.44 MB / 351.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.006512/0.1433, allocations: 3.953 MB / 355.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003138/0.1465, allocations: 1.434 MB / 356.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003699/0.1469, allocations: 11.94 kB / 356.9 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009154/0.1479, allocations: 250.8 kB / 357.2 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007075/0.1486, allocations: 254.3 kB / 357.4 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008379/0.1495, allocations: 282.4 kB / 357.7 MB, free: 13.51 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007446/0.1502, allocations: 0.7085 MB / 358.4 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002931/0.1505, allocations: 180.8 kB / 358.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003201/0.1509, allocations: 275 kB / 358.8 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003301/0.1512, allocations: 298.8 kB / 359.1 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.114e-05/0.1513, allocations: 52 kB / 359.2 MB, free: 12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002212/0.1515, allocations: 103.9 kB / 359.3 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000146/0.1517, allocations: 139.5 kB / 359.4 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002698/0.152, allocations: 302.5 kB / 359.7 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007676/0.1527, allocations: 0.7007 MB / 360.4 MB, free: 10.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.1528, allocations: 0 / 360.4 MB, free: 10.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1528, allocations: 0 / 360.4 MB, free: 10.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.036e-05/0.1528, allocations: 4 kB / 360.4 MB, free: 10.76 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.001985/0.1548, allocations: 0.9413 MB / 361.4 MB, free: 9.762 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.831e-05/0.1548, allocations: 12.03 kB / 361.4 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001549/0.155, allocations: 64.19 kB / 361.4 MB, free: 9.688 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006323/0.1556, allocations: 418.7 kB / 361.8 MB, free: 9.238 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.623e-05/0.1557, allocations: 29.38 kB / 361.9 MB, free: 9.211 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.094e-05/0.1558, allocations: 44.12 kB / 361.9 MB, free: 9.168 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007558/0.1565, allocations: 441.5 kB / 362.3 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.1566, allocations: 0 / 362.3 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.37e-05/0.1566, allocations: 19.98 kB / 362.4 MB, free: 8.691 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.503e-05/0.1566, allocations: 12 kB / 362.4 MB, free: 8.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006297/0.1573, allocations: 311.8 kB / 362.7 MB, free: 8.375 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00239/0.1597, allocations: 1.699 MB / 364.4 MB, free: 6.578 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006546/0.1603, allocations: 363.5 kB / 364.7 MB, free: 6.211 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003005/0.1606, allocations: 184.8 kB / 364.9 MB, free: 6.027 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.226e-05/0.1607, allocations: 4 kB / 364.9 MB, free: 6.023 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00048/0.1612, allocations: 258.4 kB / 365.2 MB, free: 5.742 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.164e-06/0.1612, allocations: 0 / 365.2 MB, free: 5.742 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002196/0.1634, allocations: 1.018 MB / 366.2 MB, free: 4.633 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001198/0.1635, allocations: 191.9 kB / 366.4 MB, free: 4.402 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006049/0.1642, allocations: 0.4901 MB / 366.9 MB, free: 3.902 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.128e-05/0.1642, allocations: 37.7 kB / 366.9 MB, free: 3.859 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002119/0.1644, allocations: 256.4 kB / 367.1 MB, free: 3.602 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000104/0.1645, allocations: 126.3 kB / 367.3 MB, free: 3.477 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001339/0.1647, allocations: 86.03 kB / 367.4 MB, free: 3.387 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.1648, allocations: 358.8 kB / 367.7 MB, free: 3.027 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002599/0.1651, allocations: 120.8 kB / 367.8 MB, free: 2.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003315/0.1654, allocations: 217.2 kB / 368 MB, free: 2.664 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004743/0.1659, allocations: 261.2 kB / 368.3 MB, free: 2.398 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.207e-06/0.1659, allocations: 0 / 368.3 MB, free: 2.398 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008358/0.1668, allocations: 488.8 kB / 368.8 MB, free: 1.902 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.1668, allocations: 4 kB / 368.8 MB, free: 1.898 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.1668, allocations: 0 / 368.8 MB, free: 1.898 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005316/0.1674, allocations: 155.3 kB / 368.9 MB, free: 1.734 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002199/0.1676, allocations: 47.91 kB / 369 MB, free: 1.688 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2144/0.382, allocations: 6.646 MB / 375.6 MB, free: 20.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000447/0.3825, allocations: 57.7 kB / 375.7 MB, free: 20.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.288e-05/0.3825, allocations: 17.67 kB / 375.7 MB, free: 20.48 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.000259/0.3828, allocations: 184 kB / 375.9 MB, free: 20.37 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.76e-05/0.3829, allocations: 52.98 kB / 375.9 MB, free: 20.37 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001141/0.383, allocations: 62.47 kB / 376 MB, free: 20.36 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.383, allocations: 8.844 kB / 376 MB, free: 20.36 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.383, allocations: 0 / 376 MB, free: 20.36 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.052e-06/0.383, allocations: 2.844 kB / 376 MB, free: 20.36 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005281/0.3835, allocations: 491.2 kB / 376.5 MB, free: 20.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.3836, allocations: 3.125 kB / 376.5 MB, free: 20.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000138/0.3837, allocations: 28.38 kB / 376.5 MB, free: 20.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004254/0.3841, allocations: 155.5 kB / 376.7 MB, free: 20.14 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.564e-05/0.3842, allocations: 7.891 kB / 376.7 MB, free: 20.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003714/0.3879, allocations: 6.367 MB / 383 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.3879, allocations: 3.047 kB / 383 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009495/0.3889, allocations: 0.5042 MB / 383.5 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002003/0.3891, allocations: 157 kB / 383.7 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.8e-05/0.3892, allocations: 16.97 kB / 383.7 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002755/0.3894, allocations: 28.2 kB / 383.7 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001543/0.3896, allocations: 52.94 kB / 383.8 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.403e-05/0.3896, allocations: 15.91 kB / 383.8 MB, free: 13.7 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004395/0.3901, allocations: 363.5 kB / 384.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3901, allocations: 0 / 384.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008093/0.3909, allocations: 169.1 kB / 384.3 MB, free: 13.5 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.0009967/0.3919, allocations: 427.9 kB / 384.7 MB, free: 13.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001041/0.393, allocations: 0.8071 MB / 385.5 MB, free: 12.78 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.393, allocations: 5.188 kB / 385.6 MB, free: 12.78 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00061/0.3936, allocations: 0.6486 MB / 386.2 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005278/0.3941, allocations: 122.8 kB / 386.3 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001832/0.396, allocations: 0.9561 MB / 387.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003375/0.3963, allocations: 0.8643 MB / 388.1 MB, free: 11 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001775/0.3965, allocations: 51.41 kB / 388.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.135e-05/0.3966, allocations: 33.34 kB / 388.2 MB, free: 10.97 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3966, allocations: 0 / 388.2 MB, free: 10.97 MB / 302.1 MB Notification: Performance of Templates: time 0.01778/0.4144, allocations: 9.518 MB / 397.7 MB, free: 7.844 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 -s cvode -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