Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001162/0.001162, allocations: 175.5 kB / 16.72 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.387/1.387, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001168/0.001168, allocations: 89.42 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005025/0.0005026, allocations: 8 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2822/0.2828, allocations: 47.57 MB / 375.1 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.003619/0.2865, allocations: 3.394 MB / 378.5 MB, free: 42.78 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002106/0.2886, allocations: 1.28 MB / 379.8 MB, free: 41.74 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002713/0.2889, allocations: 10.84 kB / 379.8 MB, free: 41.74 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006939/0.2896, allocations: 217.7 kB / 380 MB, free: 41.61 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004892/0.2901, allocations: 222.2 kB / 380.2 MB, free: 41.44 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006059/0.2907, allocations: 207.7 kB / 380.4 MB, free: 41.29 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006888/0.2914, allocations: 0.6469 MB / 381.1 MB, free: 40.9 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002629/0.2917, allocations: 151.4 kB / 381.2 MB, free: 40.81 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003293/0.292, allocations: 230.6 kB / 381.4 MB, free: 40.7 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002888/0.2923, allocations: 263.4 kB / 381.7 MB, free: 40.54 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.427e-05/0.2924, allocations: 29.12 kB / 381.7 MB, free: 40.53 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001979/0.2926, allocations: 58.45 kB / 381.8 MB, free: 40.52 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001141/0.2927, allocations: 121.5 kB / 381.9 MB, free: 40.43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002376/0.293, allocations: 280.5 kB / 382.2 MB, free: 40.23 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004441/0.2934, allocations: 0.5018 MB / 382.7 MB, free: 39.87 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.2935, allocations: 0 / 382.7 MB, free: 39.87 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2935, allocations: 0 / 382.7 MB, free: 39.87 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.34e-05/0.2935, allocations: 0 / 382.7 MB, free: 39.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.001343/0.2948, allocations: 0.853 MB / 383.5 MB, free: 39.16 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.2949, allocations: 9.25 kB / 383.5 MB, free: 39.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001459/0.295, allocations: 65.41 kB / 383.6 MB, free: 39.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004458/0.2955, allocations: 407.7 kB / 384 MB, free: 38.76 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.539e-05/0.2955, allocations: 32.75 kB / 384 MB, free: 38.74 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.783e-05/0.2956, allocations: 42.22 kB / 384.1 MB, free: 38.73 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006883/0.2963, allocations: 441.8 kB / 384.5 MB, free: 38.44 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.2963, allocations: 0 / 384.5 MB, free: 38.44 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.201e-05/0.2964, allocations: 17.03 kB / 384.5 MB, free: 38.43 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.471e-05/0.2964, allocations: 9.469 kB / 384.5 MB, free: 38.43 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005829/0.297, allocations: 314.5 kB / 384.8 MB, free: 38.28 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00216/0.2991, allocations: 1.728 MB / 386.6 MB, free: 36.85 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006938/0.2999, allocations: 367.9 kB / 386.9 MB, free: 36.64 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002818/0.3001, allocations: 185.7 kB / 387.1 MB, free: 36.47 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.311e-05/0.3002, allocations: 8 kB / 387.1 MB, free: 36.46 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003753/0.3006, allocations: 262.4 kB / 387.4 MB, free: 36.18 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 1.983e-06/0.3006, allocations: 0 / 387.4 MB, free: 36.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.001818/0.3024, allocations: 1.032 MB / 388.4 MB, free: 35.05 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.919e-05/0.3025, allocations: 191.8 kB / 388.6 MB, free: 34.82 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004427/0.3029, allocations: 497.9 kB / 389.1 MB, free: 34.32 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.613e-05/0.303, allocations: 41.69 kB / 389.1 MB, free: 34.27 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001267/0.3032, allocations: 252.4 kB / 389.3 MB, free: 34.02 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.603e-05/0.3032, allocations: 118.3 kB / 389.5 MB, free: 33.9 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.864e-05/0.3032, allocations: 8 kB / 389.5 MB, free: 33.89 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.923e-05/0.3033, allocations: 362.8 kB / 389.8 MB, free: 33.53 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002163/0.3036, allocations: 120.8 kB / 389.9 MB, free: 33.41 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000258/0.3038, allocations: 213.3 kB / 390.2 MB, free: 33.17 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003984/0.3042, allocations: 269.3 kB / 390.4 MB, free: 32.89 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.594e-06/0.3042, allocations: 0 / 390.4 MB, free: 32.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0006799/0.3049, allocations: 480.7 kB / 390.9 MB, free: 32.41 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.305, allocations: 4 kB / 390.9 MB, free: 32.4 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.525e-06/0.305, allocations: 4 kB / 390.9 MB, free: 32.4 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004671/0.3054, allocations: 167.5 kB / 391.1 MB, free: 32.22 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001983/0.3057, allocations: 47.91 kB / 391.1 MB, free: 32.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003389/0.3091, allocations: 5.95 MB / 397.1 MB, free: 25.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004173/0.3095, allocations: 63.75 kB / 397.1 MB, free: 25.63 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.624e-05/0.3095, allocations: 15.94 kB / 397.1 MB, free: 25.62 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002452/0.3098, allocations: 184 kB / 397.3 MB, free: 25.43 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.181e-05/0.3099, allocations: 63.28 kB / 397.4 MB, free: 25.37 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.955e-05/0.31, allocations: 60.75 kB / 397.4 MB, free: 25.31 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.055e-06/0.31, allocations: 4 kB / 397.4 MB, free: 25.3 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.31, allocations: 4 kB / 397.4 MB, free: 25.3 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.31, allocations: 0 / 397.4 MB, free: 25.3 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004196/0.3104, allocations: 497 kB / 397.9 MB, free: 24.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.3104, allocations: 0 / 397.9 MB, free: 24.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001179/0.3106, allocations: 23.98 kB / 397.9 MB, free: 24.74 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003612/0.3109, allocations: 175.2 kB / 398.1 MB, free: 24.56 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.333e-05/0.311, allocations: 4 kB / 398.1 MB, free: 24.55 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003083/0.3141, allocations: 5.784 MB / 403.9 MB, free: 18.23 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.3141, allocations: 7.969 kB / 403.9 MB, free: 18.22 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009094/0.315, allocations: 0.5085 MB / 404.4 MB, free: 17.68 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001887/0.3152, allocations: 156.4 kB / 404.6 MB, free: 17.51 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.05e-05/0.3153, allocations: 8.25 kB / 404.6 MB, free: 17.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002563/0.3156, allocations: 47.97 kB / 404.6 MB, free: 17.46 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001315/0.3157, allocations: 51.91 kB / 404.7 MB, free: 17.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.793e-05/0.3157, allocations: 12 kB / 404.7 MB, free: 17.39 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.00035/0.3161, allocations: 359 kB / 405 MB, free: 17.05 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3161, allocations: 8 kB / 405.1 MB, free: 17.04 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007337/0.3168, allocations: 163.7 kB / 405.2 MB, free: 16.88 MB / 298.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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008463/0.3177, allocations: 433.1 kB / 405.6 MB, free: 16.47 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009109/0.3186, allocations: 0.7991 MB / 406.4 MB, free: 15.62 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.3186, allocations: 0 / 406.4 MB, free: 15.62 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005453/0.3192, allocations: 0.6511 MB / 407.1 MB, free: 14.92 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005556/0.3198, allocations: 117.1 kB / 407.2 MB, free: 14.81 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001659/0.3214, allocations: 1.154 MB / 408.4 MB, free: 13.62 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002669/0.3217, allocations: 0.8631 MB / 409.2 MB, free: 12.74 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.089e-05/0.3218, allocations: 35.44 kB / 409.3 MB, free: 12.7 MB / 298.7 MB Notification: Performance of SimCode: time 7.71e-07/0.3218, allocations: 0 / 409.3 MB, free: 12.7 MB / 298.7 MB Notification: Performance of Templates: time 0.01346/0.3353, allocations: 14.57 MB / 423.8 MB, free: 14.11 MB / 314.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches