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.001214/0.001214, allocations: 110.1 kB / 17.29 MB, free: 6.059 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.001038/0.001038, allocations: 197.3 kB / 18.21 MB, free: 5.145 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.305/1.305, allocations: 222.9 MB / 241.9 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001087/0.001087, allocations: 50.67 kB / 300.8 MB, free: 6.211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0909/0.09201, allocations: 49.45 MB / 350.2 MB, free: 4.758 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.005511/0.09757, allocations: 3.984 MB / 354.2 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002645/0.1003, allocations: 1.418 MB / 355.6 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00048/0.1008, allocations: 4 kB / 355.6 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008992/0.1017, allocations: 230.6 kB / 355.9 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007655/0.1025, allocations: 226.7 kB / 356.1 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000721/0.1032, allocations: 251.6 kB / 356.3 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008282/0.1041, allocations: 0.7086 MB / 357 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002977/0.1044, allocations: 169.1 kB / 357.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004194/0.1048, allocations: 279 kB / 357.5 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003725/0.1052, allocations: 302.7 kB / 357.8 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001019/0.1053, allocations: 52 kB / 357.8 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002372/0.1056, allocations: 91.97 kB / 357.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001447/0.1057, allocations: 151.5 kB / 358.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003375/0.106, allocations: 294.4 kB / 358.4 MB, free: 12.6 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005934/0.1067, allocations: 0.5339 MB / 358.9 MB, free: 12.06 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/0.1067, allocations: 3.938 kB / 358.9 MB, free: 12.06 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1067, allocations: 3.938 kB / 358.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.414e-05/0.1067, allocations: 0 / 358.9 MB, free: 12.05 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.001799/0.1085, allocations: 0.9403 MB / 359.8 MB, free: 11.06 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.1086, allocations: 8.031 kB / 359.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001721/0.1087, allocations: 68.19 kB / 359.9 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007536/0.1095, allocations: 406.8 kB / 360.3 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.704e-05/0.1096, allocations: 29.38 kB / 360.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.087e-05/0.1096, allocations: 44.12 kB / 360.4 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007977/0.1105, allocations: 441.5 kB / 360.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/0.1105, allocations: 0 / 360.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.337e-05/0.1105, allocations: 16 kB / 360.8 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/0.1105, allocations: 8 kB / 360.8 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006067/0.1112, allocations: 319.8 kB / 361.1 MB, free: 9.684 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002493/0.1137, allocations: 1.706 MB / 362.9 MB, free: 7.879 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006799/0.1144, allocations: 366.9 kB / 363.2 MB, free: 7.508 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000315/0.1147, allocations: 192.8 kB / 363.4 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.865e-05/0.1147, allocations: 4 kB / 363.4 MB, free: 7.312 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000464/0.1152, allocations: 270.4 kB / 363.7 MB, free: 7.023 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.194e-06/0.1152, allocations: 4 kB / 363.7 MB, free: 7.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002144/0.1174, allocations: 1.006 MB / 364.7 MB, free: 5.922 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001106/0.1175, allocations: 191.9 kB / 364.9 MB, free: 5.691 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000635/0.1182, allocations: 0.4901 MB / 365.4 MB, free: 5.191 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.383e-05/0.1182, allocations: 37.7 kB / 365.4 MB, free: 5.148 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001988/0.1184, allocations: 252.4 kB / 365.6 MB, free: 4.895 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001209/0.1185, allocations: 126.3 kB / 365.8 MB, free: 4.77 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001402/0.1187, allocations: 82.05 kB / 365.8 MB, free: 4.684 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.1188, allocations: 358.8 kB / 366.2 MB, free: 4.324 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002674/0.1191, allocations: 124.8 kB / 366.3 MB, free: 4.203 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003269/0.1195, allocations: 217.2 kB / 366.5 MB, free: 3.957 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004682/0.1199, allocations: 265.1 kB / 366.8 MB, free: 3.688 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1199, allocations: 0 / 366.8 MB, free: 3.688 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008527/0.1208, allocations: 484.8 kB / 367.3 MB, free: 3.195 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.1208, allocations: 4 kB / 367.3 MB, free: 3.191 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.1208, allocations: 0 / 367.3 MB, free: 3.191 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005288/0.1214, allocations: 159.4 kB / 367.4 MB, free: 3.023 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002171/0.1216, allocations: 47.91 kB / 367.5 MB, free: 2.977 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1541/0.2758, allocations: 6.648 MB / 374.1 MB, free: 21.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004225/0.2762, allocations: 57.61 kB / 374.2 MB, free: 21.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.181e-05/0.2763, allocations: 13.19 kB / 374.2 MB, free: 21.3 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.0002401/0.2765, allocations: 193.1 kB / 374.4 MB, free: 21.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.149e-05/0.2766, allocations: 60 kB / 374.4 MB, free: 21.18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001069/0.2767, allocations: 63.92 kB / 374.5 MB, free: 21.17 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.2767, allocations: 2.938 kB / 374.5 MB, free: 21.17 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.2767, allocations: 1.469 kB / 374.5 MB, free: 21.17 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.241e-06/0.2767, allocations: 1.969 kB / 374.5 MB, free: 21.17 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005519/0.2773, allocations: 486.1 kB / 375 MB, free: 20.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.2773, allocations: 3.625 kB / 375 MB, free: 20.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001398/0.2775, allocations: 28.5 kB / 375 MB, free: 20.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004199/0.2779, allocations: 161.9 kB / 375.2 MB, free: 20.95 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.503e-05/0.2779, allocations: 9.422 kB / 375.2 MB, free: 20.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003398/0.2813, allocations: 6.354 MB / 381.5 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.2813, allocations: 3.938 kB / 381.5 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009141/0.2823, allocations: 0.5011 MB / 382 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001637/0.2824, allocations: 161.2 kB / 382.2 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.928e-05/0.2825, allocations: 11.64 kB / 382.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000268/0.2828, allocations: 28.67 kB / 382.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001449/0.2829, allocations: 53.36 kB / 382.3 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.255e-05/0.283, allocations: 10.36 kB / 382.3 MB, free: 14.64 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003983/0.2834, allocations: 359.6 kB / 382.6 MB, free: 14.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2834, allocations: 0 / 382.6 MB, free: 14.48 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007655/0.2842, allocations: 170 kB / 382.8 MB, free: 14.45 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.0009614/0.2851, allocations: 434.4 kB / 383.2 MB, free: 14.29 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001104/0.2863, allocations: 0.8231 MB / 384.1 MB, free: 13.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.2863, allocations: 0 / 384.1 MB, free: 13.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005879/0.2869, allocations: 0.6535 MB / 384.7 MB, free: 13.16 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005938/0.2875, allocations: 129 kB / 384.8 MB, free: 13.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001847/0.2893, allocations: 1.182 MB / 386 MB, free: 12.39 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000304/0.2897, allocations: 0.8645 MB / 386.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001002/0.2898, allocations: 38.12 kB / 386.9 MB, free: 11.67 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2898, allocations: 0 / 386.9 MB, free: 11.67 MB / 302.1 MB Notification: Performance of Templates: time 0.01637/0.3061, allocations: 14.63 MB / 401.5 MB, free: 5.242 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