Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3.2.3_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_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.001209/0.001208, allocations: 109.4 kB / 18.4 MB, free: 4.691 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.001267/0.001267, allocations: 193.2 kB / 19.33 MB, free: 3.77 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.51/1.51, allocations: 205.1 MB / 225.2 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 52.27 kB / 329.2 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09262/0.09408, allocations: 46.62 MB / 375.8 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.005902/0.1, allocations: 3.924 MB / 379.7 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2007/0.3007, allocations: 1.337 MB / 381.1 MB, free: 9.684 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004192/0.3013, allocations: 14.16 kB / 381.1 MB, free: 9.684 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008133/0.3021, allocations: 260 kB / 381.3 MB, free: 9.672 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006973/0.3028, allocations: 257.8 kB / 381.6 MB, free: 9.633 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007913/0.3036, allocations: 263.7 kB / 381.9 MB, free: 9.613 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009622/0.3046, allocations: 0.7158 MB / 382.6 MB, free: 9.469 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003142/0.3049, allocations: 168.2 kB / 382.7 MB, free: 9.449 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000491/0.3054, allocations: 273.7 kB / 383 MB, free: 9.402 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004622/0.3059, allocations: 306.2 kB / 383.3 MB, free: 9.332 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001274/0.306, allocations: 51.25 kB / 383.4 MB, free: 9.332 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003101/0.3063, allocations: 99.89 kB / 383.4 MB, free: 9.328 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001512/0.3065, allocations: 145.3 kB / 383.6 MB, free: 9.301 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002807/0.3068, allocations: 297.9 kB / 383.9 MB, free: 9.211 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009126/0.3077, allocations: 0.7054 MB / 384.6 MB, free: 9.09 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3077, allocations: 0 / 384.6 MB, free: 9.09 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3077, allocations: 0 / 384.6 MB, free: 9.09 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.261e-05/0.3077, allocations: 3.938 kB / 384.6 MB, free: 9.086 MB / 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.001683/0.3094, allocations: 0.939 MB / 385.5 MB, free: 8.43 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.3095, allocations: 9.156 kB / 385.5 MB, free: 8.43 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001286/0.3096, allocations: 66.42 kB / 385.6 MB, free: 8.398 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005624/0.3102, allocations: 411.3 kB / 386 MB, free: 8.082 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.329e-05/0.3102, allocations: 30.56 kB / 386 MB, free: 8.066 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.455e-05/0.3103, allocations: 38.59 kB / 386.1 MB, free: 8.055 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000741/0.311, allocations: 447.4 kB / 386.5 MB, free: 7.824 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.3111, allocations: 2.234 kB / 386.5 MB, free: 7.824 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.328e-05/0.3111, allocations: 16.41 kB / 386.5 MB, free: 7.812 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.126e-05/0.3111, allocations: 12.69 kB / 386.5 MB, free: 7.809 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000617/0.3117, allocations: 315.1 kB / 386.8 MB, free: 7.699 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002463/0.3142, allocations: 1.704 MB / 388.6 MB, free: 6.535 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006763/0.3149, allocations: 371.9 kB / 388.9 MB, free: 6.355 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003197/0.3153, allocations: 188.3 kB / 389.1 MB, free: 6.277 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.793e-05/0.3153, allocations: 7.531 kB / 389.1 MB, free: 6.277 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006228/0.3159, allocations: 258.8 kB / 389.4 MB, free: 6.121 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 2.755e-06/0.316, allocations: 0 / 389.4 MB, free: 6.121 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.00231/0.3183, allocations: 1.015 MB / 390.4 MB, free: 5.473 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.852e-05/0.3184, allocations: 185.3 kB / 390.6 MB, free: 5.254 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006797/0.319, allocations: 0.4984 MB / 391.1 MB, free: 5.031 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.843e-05/0.3191, allocations: 36.39 kB / 391.1 MB, free: 4.992 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001841/0.3193, allocations: 247.7 kB / 391.3 MB, free: 4.789 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001149/0.3194, allocations: 127.7 kB / 391.5 MB, free: 4.695 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001299/0.3196, allocations: 79.89 kB / 391.5 MB, free: 4.648 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.555e-05/0.3196, allocations: 357.4 kB / 391.9 MB, free: 4.316 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002514/0.3199, allocations: 124.9 kB / 392 MB, free: 4.27 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002967/0.3202, allocations: 209.3 kB / 392.2 MB, free: 4.129 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004499/0.3207, allocations: 274.3 kB / 392.5 MB, free: 3.984 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.3207, allocations: 1.406 kB / 392.5 MB, free: 3.984 MB / 318.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008419/0.3215, allocations: 481.7 kB / 392.9 MB, free: 3.746 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.3216, allocations: 9.156 kB / 393 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.3216, allocations: 3.75 kB / 393 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005101/0.3221, allocations: 150.8 kB / 393.1 MB, free: 3.676 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002302/0.3223, allocations: 48.36 kB / 393.2 MB, free: 3.668 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004915/0.3273, allocations: 6.648 MB / 399.8 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005981/0.3279, allocations: 52.81 kB / 399.9 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.099e-05/0.328, allocations: 14.56 kB / 399.9 MB, free: 13.16 MB / 334.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.0003472/0.3283, allocations: 191.7 kB / 400.1 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000112/0.3284, allocations: 53.97 kB / 400.1 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001302/0.3286, allocations: 62.16 kB / 400.2 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.3286, allocations: 3.5 kB / 400.2 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.3286, allocations: 6.25 kB / 400.2 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.225e-06/0.3286, allocations: 2.203 kB / 400.2 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006707/0.3293, allocations: 491.7 kB / 400.7 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.3293, allocations: 3.938 kB / 400.7 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001502/0.3295, allocations: 25.7 kB / 400.7 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004765/0.3299, allocations: 161.6 kB / 400.9 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.248e-05/0.33, allocations: 16.27 kB / 400.9 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005157/0.3352, allocations: 6.346 MB / 407.2 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.3352, allocations: 6.078 kB / 407.2 MB, free: 6.344 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001187/0.3364, allocations: 0.5102 MB / 407.7 MB, free: 6.07 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000265/0.3367, allocations: 157.8 kB / 407.9 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.758e-05/0.3368, allocations: 10.78 kB / 407.9 MB, free: 5.922 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003011/0.3371, allocations: 30.28 kB / 407.9 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001796/0.3373, allocations: 55.44 kB / 408 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.379e-05/0.3373, allocations: 16.8 kB / 408 MB, free: 5.895 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004892/0.3378, allocations: 360.4 kB / 408.3 MB, free: 5.734 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3378, allocations: 4 kB / 408.3 MB, free: 5.73 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009468/0.3388, allocations: 173.1 kB / 408.5 MB, free: 5.695 MB / 334.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.001046/0.3398, allocations: 423.8 kB / 408.9 MB, free: 5.352 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001272/0.3411, allocations: 0.8076 MB / 409.7 MB, free: 4.762 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.421e-06/0.3411, allocations: 0 / 409.7 MB, free: 4.762 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007532/0.3419, allocations: 0.6546 MB / 410.4 MB, free: 4.223 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006882/0.3426, allocations: 113 kB / 410.5 MB, free: 4.18 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00225/0.3449, allocations: 1.001 MB / 411.5 MB, free: 3.629 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004835/0.3454, allocations: 0.857 MB / 412.4 MB, free: 2.926 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001416/0.3455, allocations: 37.5 kB / 412.4 MB, free: 2.914 MB / 334.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3455, allocations: 0 / 412.4 MB, free: 2.914 MB / 334.1 MB Notification: Performance of Templates: time 0.02116/0.3667, allocations: 14.76 MB / 427.2 MB, free: 9.5 MB / 350.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches