Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001199/0.001199, allocations: 196.1 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.513/1.513, allocations: 229.5 MB / 247.7 MB, free: 6.324 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008188/0.0008189, allocations: 100.1 kB / 299.9 MB, free: 5.348 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002301/0.0002301, allocations: 7.984 kB / 360.6 MB, free: 8.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2711/0.2713, allocations: 51.41 MB / 412.1 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.003672/0.2751, allocations: 3.454 MB / 415.5 MB, free: 22.42 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002344/0.2775, allocations: 2.128 MB / 417.6 MB, free: 20.15 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002426/0.2777, allocations: 8.469 kB / 417.6 MB, free: 20.14 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000659/0.2784, allocations: 231 kB / 417.9 MB, free: 19.92 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004937/0.2789, allocations: 266.6 kB / 418.1 MB, free: 19.66 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000554/0.2795, allocations: 251.6 kB / 418.4 MB, free: 19.41 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005024/0.28, allocations: 0.6967 MB / 419.1 MB, free: 18.71 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002295/0.2802, allocations: 151 kB / 419.2 MB, free: 18.56 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003081/0.2805, allocations: 250.9 kB / 419.5 MB, free: 18.31 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000234/0.2808, allocations: 270.7 kB / 419.7 MB, free: 18.05 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.184e-05/0.2808, allocations: 28 kB / 419.8 MB, free: 18.02 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001704/0.281, allocations: 59.98 kB / 419.8 MB, free: 17.96 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001119/0.2811, allocations: 123.4 kB / 419.9 MB, free: 17.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002091/0.2814, allocations: 296.2 kB / 420.2 MB, free: 17.54 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004751/0.2818, allocations: 0.6615 MB / 420.9 MB, free: 16.88 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.2819, allocations: 0 / 420.9 MB, free: 16.88 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.2819, allocations: 4 kB / 420.9 MB, free: 16.88 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.266e-06/0.2819, allocations: 3.938 kB / 420.9 MB, free: 16.87 MB / 298.7 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.001264/0.2831, allocations: 0.8635 MB / 421.8 MB, free: 15.95 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.2832, allocations: 12.03 kB / 421.8 MB, free: 15.94 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002147/0.2834, allocations: 80.17 kB / 421.8 MB, free: 15.86 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004561/0.2839, allocations: 406.8 kB / 422.2 MB, free: 15.42 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.541e-05/0.2839, allocations: 29.38 kB / 422.3 MB, free: 15.39 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.868e-05/0.284, allocations: 48.06 kB / 422.3 MB, free: 15.35 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006335/0.2846, allocations: 445.5 kB / 422.8 MB, free: 14.89 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.2847, allocations: 0 / 422.8 MB, free: 14.89 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.88e-05/0.2847, allocations: 16 kB / 422.8 MB, free: 14.87 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.2847, allocations: 12 kB / 422.8 MB, free: 14.86 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005136/0.2852, allocations: 311.8 kB / 423.1 MB, free: 14.55 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001923/0.2872, allocations: 1.734 MB / 424.8 MB, free: 12.72 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005875/0.2878, allocations: 355.1 kB / 425.2 MB, free: 12.37 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002672/0.288, allocations: 185.4 kB / 425.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.942e-05/0.2881, allocations: 11.98 kB / 425.4 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003677/0.2885, allocations: 254.5 kB / 425.6 MB, free: 11.89 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 1.452e-06/0.2885, allocations: 0 / 425.6 MB, free: 11.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.001857/0.2903, allocations: 1.037 MB / 426.6 MB, free: 10.77 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.562e-05/0.2904, allocations: 187.9 kB / 426.8 MB, free: 10.54 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004282/0.2908, allocations: 0.498 MB / 427.3 MB, free: 10.03 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.532e-05/0.2909, allocations: 37.7 kB / 427.4 MB, free: 9.988 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001262/0.291, allocations: 256.4 kB / 427.6 MB, free: 9.73 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.455e-05/0.2911, allocations: 118.3 kB / 427.7 MB, free: 9.613 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.684e-05/0.2911, allocations: 11.94 kB / 427.7 MB, free: 9.602 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.019e-05/0.2912, allocations: 358.8 kB / 428.1 MB, free: 9.242 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002117/0.2914, allocations: 132.8 kB / 428.2 MB, free: 9.113 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002509/0.2917, allocations: 209.3 kB / 428.4 MB, free: 8.871 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003748/0.2921, allocations: 269.3 kB / 428.7 MB, free: 8.598 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2921, allocations: 0 / 428.7 MB, free: 8.598 MB / 298.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0006411/0.2927, allocations: 476.9 kB / 429.2 MB, free: 8.113 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.2927, allocations: 8 kB / 429.2 MB, free: 8.105 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.2928, allocations: 0 / 429.2 MB, free: 8.105 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004516/0.2932, allocations: 163.2 kB / 429.3 MB, free: 7.934 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001941/0.2934, allocations: 51.91 kB / 429.4 MB, free: 7.883 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00335/0.2968, allocations: 5.946 MB / 435.3 MB, free: 1.406 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003536/0.2972, allocations: 67.66 kB / 435.4 MB, free: 1.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.653e-05/0.2972, allocations: 16 kB / 435.4 MB, free: 1.324 MB / 298.7 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 ($whenCondition2,$PRE.booleanStep1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.IdealThyristor1.off,IdealThyristor1.off,IdealThyristor1.fire,IdealGTOThyristor1.off,booleanStep1.combiTimeTable.nextTimeEvent,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.IdealThyristor2.off,IdealThyristor2.off,IdealGTOThyristor2.off,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * 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.0002426/0.2974, allocations: 190.8 kB / 435.6 MB, free: 1.133 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.808e-05/0.2975, allocations: 51.38 kB / 435.6 MB, free: 1.082 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.014e-05/0.2976, allocations: 64.78 kB / 435.7 MB, free: 1.02 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.2976, allocations: 7.938 kB / 435.7 MB, free: 1.012 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.2976, allocations: 4 kB / 435.7 MB, free: 1.008 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.2976, allocations: 3.984 kB / 435.7 MB, free: 1.004 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004345/0.2981, allocations: 489.1 kB / 436.2 MB, free: 488 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.2981, allocations: 0 / 436.2 MB, free: 488 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000121/0.2982, allocations: 31.91 kB / 436.2 MB, free: 456 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003706/0.2986, allocations: 163.4 kB / 436.4 MB, free: 280 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.281e-05/0.2986, allocations: 11.98 kB / 436.4 MB, free: 268 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004644/0.3033, allocations: 5.792 MB / 442.2 MB, free: 9.934 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/0.3033, allocations: 7.922 kB / 442.2 MB, free: 9.926 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009629/0.3043, allocations: 0.5073 MB / 442.7 MB, free: 9.387 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001914/0.3045, allocations: 160.3 kB / 442.9 MB, free: 9.211 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.615e-05/0.3045, allocations: 12 kB / 442.9 MB, free: 9.199 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002748/0.3048, allocations: 39.97 kB / 442.9 MB, free: 9.16 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001409/0.305, allocations: 47.92 kB / 443 MB, free: 9.113 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.203e-05/0.305, allocations: 15.94 kB / 443 MB, free: 9.098 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004485/0.3055, allocations: 363.1 kB / 443.3 MB, free: 8.742 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3055, allocations: 0 / 443.3 MB, free: 8.742 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007939/0.3063, allocations: 171.7 kB / 443.5 MB, free: 8.574 MB / 314.7 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.001055/0.3073, allocations: 496.8 kB / 444 MB, free: 8.203 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001214/0.3086, allocations: 0.7959 MB / 444.8 MB, free: 7.355 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3086, allocations: 0 / 444.8 MB, free: 7.355 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007455/0.3093, allocations: 0.6626 MB / 445.4 MB, free: 6.641 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006244/0.31, allocations: 118.6 kB / 445.6 MB, free: 6.531 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002103/0.3121, allocations: 1.175 MB / 446.7 MB, free: 5.336 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005257/0.3126, allocations: 0.8632 MB / 447.6 MB, free: 4.449 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002234/0.3129, allocations: 56.14 kB / 447.6 MB, free: 4.391 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.33e-05/0.313, allocations: 31.44 kB / 447.7 MB, free: 4.359 MB / 314.7 MB Notification: Performance of SimCode: time 2.325e-06/0.313, allocations: 0 / 447.7 MB, free: 4.359 MB / 314.7 MB Notification: Performance of Templates: time 0.01596/0.3289, allocations: 8.729 MB / 456.4 MB, free: 11.67 MB / 330.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches