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.001023/0.001023, allocations: 114.5 kB / 17.73 MB, free: 5.34 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.001036/0.001036, allocations: 187 kB / 18.67 MB, free: 4.414 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.542/1.542, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001294/0.001294, allocations: 47.94 kB / 328.5 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1017, allocations: 46.61 MB / 375.1 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.005038/0.1068, allocations: 3.915 MB / 379.1 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2151/0.3219, allocations: 1.342 MB / 380.4 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003807/0.3224, allocations: 10.22 kB / 380.4 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009016/0.3233, allocations: 262.9 kB / 380.7 MB, free: 9.664 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000663/0.324, allocations: 257 kB / 380.9 MB, free: 9.629 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007531/0.3247, allocations: 263.8 kB / 381.2 MB, free: 9.609 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009093/0.3257, allocations: 0.7226 MB / 381.9 MB, free: 9.465 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003419/0.326, allocations: 168.2 kB / 382.1 MB, free: 9.445 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000435/0.3265, allocations: 283.1 kB / 382.3 MB, free: 9.391 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004806/0.327, allocations: 301.6 kB / 382.6 MB, free: 9.324 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001219/0.3271, allocations: 50.41 kB / 382.7 MB, free: 9.324 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002829/0.3274, allocations: 97.02 kB / 382.8 MB, free: 9.32 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000196/0.3276, allocations: 144.8 kB / 382.9 MB, free: 9.297 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002936/0.3279, allocations: 296 kB / 383.2 MB, free: 9.207 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009181/0.3288, allocations: 0.7107 MB / 383.9 MB, free: 9.082 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.309e-06/0.3288, allocations: 0 / 383.9 MB, free: 9.082 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.3288, allocations: 0 / 383.9 MB, free: 9.082 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.218e-06/0.3288, allocations: 0 / 383.9 MB, free: 9.082 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.001623/0.3305, allocations: 0.9367 MB / 384.9 MB, free: 8.43 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.3305, allocations: 13.16 kB / 384.9 MB, free: 8.426 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001306/0.3307, allocations: 68.16 kB / 384.9 MB, free: 8.395 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005228/0.3312, allocations: 416.5 kB / 385.3 MB, free: 8.074 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.585e-05/0.3312, allocations: 29.78 kB / 385.4 MB, free: 8.059 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.112e-05/0.3313, allocations: 44.77 kB / 385.4 MB, free: 8.043 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008097/0.3321, allocations: 444.1 kB / 385.9 MB, free: 7.816 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.3321, allocations: 0 / 385.9 MB, free: 7.816 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.02e-05/0.3322, allocations: 16.31 kB / 385.9 MB, free: 7.805 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.315e-05/0.3322, allocations: 10 kB / 385.9 MB, free: 7.805 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006344/0.3329, allocations: 315.5 kB / 386.2 MB, free: 7.695 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002292/0.3352, allocations: 1.693 MB / 387.9 MB, free: 6.539 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006523/0.3358, allocations: 370.3 kB / 388.2 MB, free: 6.359 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003416/0.3362, allocations: 188.5 kB / 388.4 MB, free: 6.281 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.045e-05/0.3362, allocations: 4.234 kB / 388.4 MB, free: 6.281 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004413/0.3367, allocations: 263.6 kB / 388.7 MB, free: 6.121 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 1.683e-06/0.3367, allocations: 0 / 388.7 MB, free: 6.121 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.002094/0.3388, allocations: 1.014 MB / 389.7 MB, free: 5.473 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.091e-05/0.3389, allocations: 195.4 kB / 389.9 MB, free: 5.246 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006172/0.3395, allocations: 0.4915 MB / 390.4 MB, free: 5.027 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.3e-05/0.3395, allocations: 33.81 kB / 390.4 MB, free: 4.992 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001547/0.3397, allocations: 255.8 kB / 390.7 MB, free: 4.785 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.855e-05/0.3398, allocations: 119.7 kB / 390.8 MB, free: 4.695 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.3399, allocations: 80 kB / 390.9 MB, free: 4.648 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.463e-05/0.34, allocations: 357.9 kB / 391.2 MB, free: 4.316 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002608/0.3403, allocations: 123.8 kB / 391.3 MB, free: 4.27 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003104/0.3406, allocations: 217.5 kB / 391.5 MB, free: 4.121 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004316/0.341, allocations: 270.9 kB / 391.8 MB, free: 3.98 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.341, allocations: 3.938 kB / 391.8 MB, free: 3.977 MB / 318.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0007464/0.3418, allocations: 475.9 kB / 392.3 MB, free: 3.746 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.851e-05/0.3418, allocations: 9.562 kB / 392.3 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.3418, allocations: 1.375 kB / 392.3 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004779/0.3423, allocations: 158.5 kB / 392.4 MB, free: 3.672 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002088/0.3425, allocations: 46.53 kB / 392.5 MB, free: 3.668 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004572/0.3471, allocations: 6.651 MB / 399.1 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004987/0.3476, allocations: 57.45 kB / 399.2 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.217e-05/0.3477, allocations: 9.578 kB / 399.2 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.000337/0.348, allocations: 190.1 kB / 399.4 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000104/0.3481, allocations: 53.48 kB / 399.4 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001353/0.3483, allocations: 66.16 kB / 399.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.3483, allocations: 3.5 kB / 399.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.3483, allocations: 5.125 kB / 399.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.076e-06/0.3483, allocations: 2.531 kB / 399.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006482/0.349, allocations: 491.5 kB / 400 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.012e-06/0.349, allocations: 6.109 kB / 400 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001422/0.3491, allocations: 32.69 kB / 400 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004481/0.3496, allocations: 149 kB / 400.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.227e-05/0.3496, allocations: 11.8 kB / 400.2 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005434/0.3551, allocations: 6.352 MB / 406.5 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.3551, allocations: 4.688 kB / 406.5 MB, free: 6.344 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001128/0.3562, allocations: 0.5065 MB / 407.1 MB, free: 6.074 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002303/0.3565, allocations: 158.3 kB / 407.2 MB, free: 5.934 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.463e-05/0.3566, allocations: 12.3 kB / 407.2 MB, free: 5.926 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002784/0.3568, allocations: 31.42 kB / 407.3 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001581/0.357, allocations: 53.66 kB / 407.3 MB, free: 5.906 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.253e-05/0.357, allocations: 13.92 kB / 407.3 MB, free: 5.902 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004715/0.3575, allocations: 357.9 kB / 407.7 MB, free: 5.742 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3575, allocations: 0 / 407.7 MB, free: 5.742 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008693/0.3584, allocations: 176.7 kB / 407.8 MB, free: 5.703 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.001014/0.3594, allocations: 441.7 kB / 408.3 MB, free: 5.344 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001351/0.3608, allocations: 0.8041 MB / 409.1 MB, free: 4.758 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3608, allocations: 0 / 409.1 MB, free: 4.758 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007934/0.3616, allocations: 0.6505 MB / 409.7 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.0005651/0.3622, allocations: 117.1 kB / 409.8 MB, free: 4.176 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002259/0.3645, allocations: 0.9697 MB / 410.8 MB, free: 3.656 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006297/0.3651, allocations: 0.857 MB / 411.7 MB, free: 2.953 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002439/0.3654, allocations: 51.92 kB / 411.7 MB, free: 2.938 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.443e-05/0.3655, allocations: 36.02 kB / 411.8 MB, free: 2.926 MB / 334.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3655, allocations: 0 / 411.8 MB, free: 2.926 MB / 334.1 MB Notification: Performance of Templates: time 0.01887/0.3844, allocations: 9.613 MB / 421.4 MB, free: 14.61 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","/var/lib/jenkins/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