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.001056/0.001056, allocations: 114.8 kB / 17.75 MB, free: 5.355 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.0009904/0.0009904, allocations: 184.5 kB / 18.67 MB, free: 4.441 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.301/1.301, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009782/0.0009782, allocations: 47.92 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.272/0.273, allocations: 49.43 MB / 401.4 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.00544/0.2784, allocations: 3.966 MB / 405.4 MB, free: 5.039 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002732/0.2812, allocations: 1.43 MB / 406.8 MB, free: 3.602 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004661/0.2817, allocations: 7.938 kB / 406.8 MB, free: 3.594 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008801/0.2827, allocations: 253 kB / 407.1 MB, free: 3.348 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007855/0.2835, allocations: 254.4 kB / 407.3 MB, free: 3.098 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008154/0.2843, allocations: 293.5 kB / 407.6 MB, free: 2.812 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009245/0.2852, allocations: 0.7046 MB / 408.3 MB, free: 2.105 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003267/0.2856, allocations: 178.2 kB / 408.5 MB, free: 1.926 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004589/0.286, allocations: 271 kB / 408.7 MB, free: 1.66 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004225/0.2865, allocations: 302.7 kB / 409 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001137/0.2866, allocations: 52 kB / 409.1 MB, free: 1.312 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002468/0.2868, allocations: 95.97 kB / 409.2 MB, free: 1.219 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001506/0.287, allocations: 147.5 kB / 409.3 MB, free: 1.074 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002967/0.2873, allocations: 298.5 kB / 409.6 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007593/0.2881, allocations: 0.7085 MB / 410.3 MB, free: 72 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2881, allocations: 7.938 kB / 410.3 MB, free: 64 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2881, allocations: 0 / 410.3 MB, free: 64 kB / 318.1 MB Notification: Performance of Transformations before backend: time 2.062e-05/0.2881, allocations: 0 / 410.3 MB, free: 64 kB / 318.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.001673/0.2898, allocations: 0.9258 MB / 411.3 MB, free: 15.08 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.2898, allocations: 8.031 kB / 411.3 MB, free: 15.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001414/0.29, allocations: 68.12 kB / 411.3 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005455/0.2905, allocations: 422.7 kB / 411.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.938e-05/0.2906, allocations: 29.38 kB / 411.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.626e-05/0.2906, allocations: 44.12 kB / 411.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007377/0.2914, allocations: 437.5 kB / 412.2 MB, free: 14.03 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.2914, allocations: 3.984 kB / 412.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.472e-05/0.2915, allocations: 20 kB / 412.3 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.203e-05/0.2915, allocations: 12 kB / 412.3 MB, free: 13.99 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005843/0.2921, allocations: 307.8 kB / 412.6 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002364/0.2945, allocations: 1.706 MB / 414.3 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007161/0.2952, allocations: 367.4 kB / 414.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004119/0.2956, allocations: 184.8 kB / 414.8 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.291e-05/0.2957, allocations: 8 kB / 414.8 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004342/0.2961, allocations: 254.5 kB / 415.1 MB, free: 11.05 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 1.704e-06/0.2961, allocations: 0 / 415.1 MB, free: 11.05 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002124/0.2982, allocations: 1.014 MB / 416.1 MB, free: 9.941 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/0.2984, allocations: 191.8 kB / 416.3 MB, free: 9.711 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005744/0.2989, allocations: 0.4902 MB / 416.8 MB, free: 9.215 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.801e-05/0.299, allocations: 37.7 kB / 416.8 MB, free: 9.172 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000192/0.2992, allocations: 264.3 kB / 417.1 MB, free: 8.906 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/0.2993, allocations: 126.2 kB / 417.2 MB, free: 8.781 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001271/0.2994, allocations: 74.12 kB / 417.3 MB, free: 8.703 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.2996, allocations: 358.8 kB / 417.6 MB, free: 8.344 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002793/0.2999, allocations: 120.8 kB / 417.7 MB, free: 8.227 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003251/0.3002, allocations: 213.3 kB / 417.9 MB, free: 7.98 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004637/0.3007, allocations: 269.3 kB / 418.2 MB, free: 7.707 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.257e-06/0.3007, allocations: 0 / 418.2 MB, free: 7.707 MB / 334.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008135/0.3015, allocations: 480.7 kB / 418.7 MB, free: 7.219 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.3016, allocations: 4 kB / 418.7 MB, free: 7.215 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.3016, allocations: 4 kB / 418.7 MB, free: 7.211 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005031/0.3021, allocations: 163.5 kB / 418.8 MB, free: 7.039 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002159/0.3023, allocations: 47.91 kB / 418.9 MB, free: 6.992 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005287/0.3076, allocations: 6.643 MB / 425.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003803/0.308, allocations: 55.69 kB / 425.6 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.959e-05/0.308, allocations: 12 kB / 425.6 MB, free: 15.73 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.0002599/0.3083, allocations: 192.4 kB / 425.8 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.882e-05/0.3084, allocations: 55.28 kB / 425.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001129/0.3085, allocations: 60.84 kB / 425.9 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.3085, allocations: 7.984 kB / 425.9 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.3085, allocations: 0 / 425.9 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.3086, allocations: 0 / 425.9 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005497/0.3091, allocations: 0.4892 MB / 426.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.3091, allocations: 0 / 426.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001339/0.3093, allocations: 23.98 kB / 426.4 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004285/0.3097, allocations: 167.2 kB / 426.6 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.833e-05/0.3097, allocations: 12 kB / 426.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004831/0.3146, allocations: 6.351 MB / 432.9 MB, free: 7.754 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3146, allocations: 0 / 432.9 MB, free: 7.754 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001031/0.3157, allocations: 0.5072 MB / 433.4 MB, free: 7.215 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002152/0.3159, allocations: 156.4 kB / 433.6 MB, free: 7.043 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.308e-05/0.316, allocations: 15.94 kB / 433.6 MB, free: 7.027 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002906/0.3163, allocations: 27.97 kB / 433.6 MB, free: 7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001389/0.3164, allocations: 63.86 kB / 433.7 MB, free: 6.938 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.964e-05/0.3165, allocations: 12 kB / 433.7 MB, free: 6.926 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004041/0.3169, allocations: 359.1 kB / 434.1 MB, free: 6.574 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3169, allocations: 0 / 434.1 MB, free: 6.574 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007826/0.3177, allocations: 167.7 kB / 434.2 MB, free: 6.41 MB / 350.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.001034/0.3187, allocations: 441.7 kB / 434.7 MB, free: 6.129 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001181/0.3199, allocations: 0.8029 MB / 435.5 MB, free: 5.273 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.3199, allocations: 4 kB / 435.5 MB, free: 5.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007169/0.3206, allocations: 0.659 MB / 436.1 MB, free: 4.559 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005926/0.3212, allocations: 115.3 kB / 436.2 MB, free: 4.449 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002036/0.3233, allocations: 0.9879 MB / 437.2 MB, free: 3.43 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004893/0.3238, allocations: 0.8633 MB / 438.1 MB, free: 2.539 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001055/0.3239, allocations: 35.42 kB / 438.1 MB, free: 2.504 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3239, allocations: 0 / 438.1 MB, free: 2.504 MB / 350.1 MB Notification: Performance of Templates: time 0.01814/0.3421, allocations: 14.69 MB / 452.8 MB, free: 3.84 MB / 366.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