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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001223/0.001223, allocations: 113.3 kB / 17.28 MB, free: 6.301 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.001124/0.001124, allocations: 189.3 kB / 18.19 MB, free: 5.383 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.4/1.4, allocations: 205.1 MB / 224 MB, free: 12.44 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.001166/0.001166, allocations: 48.16 kB / 280.2 MB, free: 3.402 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1106, allocations: 46.63 MB / 326.9 MB, free: 4.699 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.00693/0.1176, allocations: 3.957 MB / 330.8 MB, free: 0.7148 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003098/0.1208, allocations: 1.337 MB / 332.2 MB, free: 15.37 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004693/0.1214, allocations: 7.938 kB / 332.2 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009715/0.1223, allocations: 219.2 kB / 332.4 MB, free: 15.14 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006667/0.123, allocations: 234.6 kB / 332.6 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007334/0.1238, allocations: 231.7 kB / 332.8 MB, free: 14.69 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008436/0.1246, allocations: 0.7125 MB / 333.6 MB, free: 13.97 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003438/0.125, allocations: 169.1 kB / 333.7 MB, free: 13.8 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004166/0.1254, allocations: 275 kB / 334 MB, free: 13.53 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003638/0.1258, allocations: 310.7 kB / 334.3 MB, free: 13.23 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.571e-05/0.1259, allocations: 48 kB / 334.3 MB, free: 13.18 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002273/0.1261, allocations: 95.95 kB / 334.4 MB, free: 13.09 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001718/0.1263, allocations: 143.5 kB / 334.6 MB, free: 12.95 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003131/0.1266, allocations: 302.4 kB / 334.9 MB, free: 12.65 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008055/0.1274, allocations: 0.6968 MB / 335.6 MB, free: 11.95 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.014e-06/0.1274, allocations: 0 / 335.6 MB, free: 11.95 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1275, allocations: 0 / 335.6 MB, free: 11.95 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.105e-05/0.1275, allocations: 0 / 335.6 MB, free: 11.95 MB / 286.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.001775/0.1293, allocations: 0.9413 MB / 336.5 MB, free: 10.95 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.889e-05/0.1293, allocations: 12.03 kB / 336.5 MB, free: 10.94 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.757e-05/0.1294, allocations: 82.69 kB / 336.6 MB, free: 10.85 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000132/0.1296, allocations: 64.19 kB / 336.7 MB, free: 10.79 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000585/0.1302, allocations: 406.7 kB / 337.1 MB, free: 10.35 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.483e-05/0.1302, allocations: 33.38 kB / 337.1 MB, free: 10.32 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.614e-05/0.1303, allocations: 39.94 kB / 337.1 MB, free: 10.28 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007765/0.1311, allocations: 441.5 kB / 337.6 MB, free: 9.824 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/0.1311, allocations: 0 / 337.6 MB, free: 9.824 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.891e-05/0.1311, allocations: 23.98 kB / 337.6 MB, free: 9.801 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.1312, allocations: 8 kB / 337.6 MB, free: 9.793 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005893/0.1318, allocations: 311.8 kB / 337.9 MB, free: 9.488 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002639/0.1344, allocations: 1.71 MB / 339.6 MB, free: 7.684 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007224/0.1352, allocations: 366.9 kB / 340 MB, free: 7.316 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003281/0.1355, allocations: 188.5 kB / 340.2 MB, free: 7.129 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.611e-05/0.1356, allocations: 7.984 kB / 340.2 MB, free: 7.121 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004698/0.136, allocations: 262.4 kB / 340.4 MB, free: 6.84 MB / 286.1 MB Notification: Performance of pre-optimization done (n=40): time 1.834e-06/0.136, allocations: 0 / 340.4 MB, free: 6.84 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.002143/0.1382, allocations: 1.009 MB / 341.4 MB, free: 5.738 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001176/0.1383, allocations: 191.9 kB / 341.6 MB, free: 5.508 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005511/0.1389, allocations: 0.494 MB / 342.1 MB, free: 4.996 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.729e-05/0.1389, allocations: 33.7 kB / 342.1 MB, free: 4.957 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001894/0.1391, allocations: 260.3 kB / 342.4 MB, free: 4.699 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.457e-05/0.1392, allocations: 122.3 kB / 342.5 MB, free: 4.578 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001318/0.1394, allocations: 82.03 kB / 342.6 MB, free: 4.492 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.1395, allocations: 358.8 kB / 342.9 MB, free: 4.133 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002405/0.1398, allocations: 120.8 kB / 343.1 MB, free: 4.012 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003334/0.1401, allocations: 221.2 kB / 343.3 MB, free: 3.762 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004668/0.1406, allocations: 269.3 kB / 343.5 MB, free: 3.488 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.1406, allocations: 3.984 kB / 343.5 MB, free: 3.484 MB / 286.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008062/0.1414, allocations: 472.8 kB / 344 MB, free: 3.004 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.1415, allocations: 8.094 kB / 344 MB, free: 2.996 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.1415, allocations: 4 kB / 344 MB, free: 2.992 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005151/0.142, allocations: 163.3 kB / 344.2 MB, free: 2.82 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002292/0.1422, allocations: 47.91 kB / 344.2 MB, free: 2.773 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005065/0.1473, allocations: 6.647 MB / 350.9 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004249/0.1478, allocations: 55.59 kB / 350.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.119e-05/0.1478, allocations: 12 kB / 350.9 MB, free: 11.51 MB / 302.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.0002839/0.1481, allocations: 192.1 kB / 351.1 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.283e-05/0.1482, allocations: 55.38 kB / 351.2 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001036/0.1483, allocations: 56.75 kB / 351.2 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.1483, allocations: 4 kB / 351.2 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.1483, allocations: 0 / 351.2 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.1483, allocations: 0 / 351.2 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004993/0.1488, allocations: 0.4893 MB / 351.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.1489, allocations: 0 / 351.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001287/0.149, allocations: 31.92 kB / 351.8 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004278/0.1494, allocations: 163.3 kB / 351.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.759e-05/0.1495, allocations: 4 kB / 351.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004805/0.1543, allocations: 6.355 MB / 358.3 MB, free: 3.535 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.1543, allocations: 3.938 kB / 358.3 MB, free: 3.531 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001007/0.1553, allocations: 0.5086 MB / 358.8 MB, free: 2.992 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002003/0.1555, allocations: 160.2 kB / 358.9 MB, free: 2.816 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.62e-05/0.1556, allocations: 8 kB / 359 MB, free: 2.809 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003065/0.1559, allocations: 35.97 kB / 359 MB, free: 2.773 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001484/0.1561, allocations: 51.86 kB / 359 MB, free: 2.723 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.075e-05/0.1561, allocations: 12 kB / 359.1 MB, free: 2.711 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004007/0.1565, allocations: 363.1 kB / 359.4 MB, free: 2.359 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1565, allocations: 0 / 359.4 MB, free: 2.359 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007906/0.1573, allocations: 171.7 kB / 359.6 MB, free: 2.191 MB / 302.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.002128/0.1595, allocations: 1.368 MB / 360.9 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001297/0.1608, allocations: 0.8188 MB / 361.8 MB, free: 15.93 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.1608, allocations: 0 / 361.8 MB, free: 15.93 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007696/0.1616, allocations: 0.6511 MB / 362.4 MB, free: 15.22 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006338/0.1622, allocations: 117.8 kB / 362.5 MB, free: 15.11 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006517/0.1688, allocations: 4.532 MB / 367.1 MB, free: 10.45 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004789/0.1693, allocations: 0.8634 MB / 367.9 MB, free: 9.559 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002351/0.1695, allocations: 48.17 kB / 368 MB, free: 9.512 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002141/0.1698, allocations: 175.3 kB / 368.1 MB, free: 9.34 MB / 318.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1698, allocations: 0 / 368.1 MB, free: 9.34 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1858/0.3556, allocations: 13.83 MB / 382 MB, free: 53.65 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001532/0.3558, allocations: 283.4 kB / 382.3 MB, free: 53.27 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.298/2.653, allocations: 0 / 382.3 MB, free: 53.27 MB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicThyristors_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicThyristors.fmu > 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","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches