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.001389/0.001389, allocations: 112.3 kB / 17.74 MB, free: 5.336 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.001455/0.001455, allocations: 187 kB / 18.67 MB, free: 4.41 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.342/1.342, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 51.86 kB / 352 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2792/0.2804, allocations: 49.42 MB / 401.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.005461/0.286, allocations: 3.967 MB / 405.4 MB, free: 4.887 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002582/0.2886, allocations: 1.418 MB / 406.8 MB, free: 3.461 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003017/0.2889, allocations: 11.94 kB / 406.8 MB, free: 3.449 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007962/0.2898, allocations: 256.7 kB / 407.1 MB, free: 3.199 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005656/0.2903, allocations: 254.4 kB / 407.3 MB, free: 2.949 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006813/0.291, allocations: 285.5 kB / 407.6 MB, free: 2.672 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007498/0.2918, allocations: 0.7124 MB / 408.3 MB, free: 1.957 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003101/0.2921, allocations: 174.2 kB / 408.5 MB, free: 1.781 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003689/0.2925, allocations: 275 kB / 408.7 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000356/0.2929, allocations: 302.7 kB / 409 MB, free: 1.215 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.16e-05/0.2929, allocations: 48 kB / 409.1 MB, free: 1.168 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002291/0.2932, allocations: 99.95 kB / 409.2 MB, free: 1.07 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001352/0.2933, allocations: 147.4 kB / 409.3 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002764/0.2936, allocations: 298.5 kB / 409.6 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007611/0.2944, allocations: 0.7122 MB / 410.3 MB, free: 15.92 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.2944, allocations: 0 / 410.3 MB, free: 15.92 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2944, allocations: 0 / 410.3 MB, free: 15.92 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.017e-05/0.2944, allocations: 0 / 410.3 MB, free: 15.92 MB / 334.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.001594/0.296, allocations: 0.9336 MB / 411.3 MB, free: 14.93 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.813e-05/0.2961, allocations: 15.89 kB / 411.3 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001222/0.2962, allocations: 64.19 kB / 411.3 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005423/0.2967, allocations: 418.7 kB / 411.7 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.117e-05/0.2968, allocations: 33.38 kB / 411.8 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.536e-05/0.2969, allocations: 44.06 kB / 411.8 MB, free: 14.33 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007143/0.2976, allocations: 437.6 kB / 412.2 MB, free: 13.87 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.2976, allocations: 0 / 412.2 MB, free: 13.87 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.18e-05/0.2977, allocations: 24 kB / 412.3 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.213e-05/0.2977, allocations: 8 kB / 412.3 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005734/0.2983, allocations: 319.7 kB / 412.6 MB, free: 13.53 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002305/0.3006, allocations: 1.691 MB / 414.3 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006605/0.3013, allocations: 371.4 kB / 414.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002996/0.3016, allocations: 192.3 kB / 414.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.108e-05/0.3016, allocations: 4 kB / 414.8 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004342/0.3021, allocations: 262.4 kB / 415.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 2.004e-06/0.3021, allocations: 0 / 415.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002127/0.3042, allocations: 1.01 MB / 416.1 MB, free: 9.785 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001089/0.3043, allocations: 195.9 kB / 416.3 MB, free: 9.551 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005682/0.3049, allocations: 497.9 kB / 416.8 MB, free: 9.059 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.008e-05/0.3049, allocations: 41.62 kB / 416.8 MB, free: 9.012 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001969/0.3052, allocations: 260.4 kB / 417.1 MB, free: 8.75 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.797e-05/0.3053, allocations: 118.3 kB / 417.2 MB, free: 8.633 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001308/0.3054, allocations: 78.12 kB / 417.3 MB, free: 8.551 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.3056, allocations: 358.8 kB / 417.6 MB, free: 8.191 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002457/0.3058, allocations: 120.8 kB / 417.7 MB, free: 8.074 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003162/0.3061, allocations: 213.3 kB / 417.9 MB, free: 7.828 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004525/0.3066, allocations: 269.3 kB / 418.2 MB, free: 7.555 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.3066, allocations: 4.062 kB / 418.2 MB, free: 7.551 MB / 334.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0007894/0.3074, allocations: 484.7 kB / 418.7 MB, free: 7.059 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.05e-05/0.3074, allocations: 4 kB / 418.7 MB, free: 7.055 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.3074, allocations: 0 / 418.7 MB, free: 7.055 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005305/0.308, allocations: 159.4 kB / 418.8 MB, free: 6.887 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002079/0.3082, allocations: 43.91 kB / 418.9 MB, free: 6.844 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005265/0.3135, allocations: 6.647 MB / 425.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004148/0.3139, allocations: 55.59 kB / 425.6 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.792e-05/0.314, allocations: 12 kB / 425.6 MB, free: 15.57 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.0002893/0.3143, allocations: 192.5 kB / 425.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.422e-05/0.3144, allocations: 59.28 kB / 425.8 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001121/0.3145, allocations: 64.75 kB / 425.9 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.3145, allocations: 4 kB / 425.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.3145, allocations: 0 / 425.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.3145, allocations: 0 / 425.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005276/0.315, allocations: 493 kB / 426.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.3151, allocations: 0 / 426.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001331/0.3152, allocations: 27.98 kB / 426.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004309/0.3156, allocations: 167.3 kB / 426.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.484e-05/0.3157, allocations: 8 kB / 426.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004914/0.3206, allocations: 6.344 MB / 432.9 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.3206, allocations: 3.938 kB / 432.9 MB, free: 7.609 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001019/0.3216, allocations: 0.515 MB / 433.4 MB, free: 7.062 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001947/0.3218, allocations: 156.4 kB / 433.6 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.611e-05/0.3219, allocations: 11.94 kB / 433.6 MB, free: 6.879 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002821/0.3222, allocations: 31.97 kB / 433.6 MB, free: 6.848 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001363/0.3224, allocations: 51.92 kB / 433.7 MB, free: 6.797 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.878e-05/0.3224, allocations: 12 kB / 433.7 MB, free: 6.785 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004112/0.3228, allocations: 363.1 kB / 434.1 MB, free: 6.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3228, allocations: 0 / 434.1 MB, free: 6.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007823/0.3236, allocations: 171.7 kB / 434.2 MB, free: 6.262 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.001001/0.3246, allocations: 440.5 kB / 434.7 MB, free: 5.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001238/0.3259, allocations: 0.803 MB / 435.5 MB, free: 5.125 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.3259, allocations: 0 / 435.5 MB, free: 5.125 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007157/0.3266, allocations: 0.659 MB / 436.1 MB, free: 4.414 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005447/0.3272, allocations: 126.2 kB / 436.2 MB, free: 4.297 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001859/0.329, allocations: 0.9814 MB / 437.2 MB, free: 3.281 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004517/0.3295, allocations: 0.8633 MB / 438.1 MB, free: 2.391 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.377e-05/0.3296, allocations: 39.42 kB / 438.1 MB, free: 2.352 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3296, allocations: 0 / 438.1 MB, free: 2.352 MB / 350.1 MB Notification: Performance of Templates: time 0.01709/0.3467, allocations: 14.76 MB / 452.9 MB, free: 3.621 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