Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",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.0006319/0.000632, allocations: 96.39 kB / 17.3 MB, free: 6.391 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.000791/0.0007911, allocations: 177.5 kB / 18.21 MB, free: 5.551 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.381/1.381, allocations: 205.4 MB / 224.4 MB, free: 13.08 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.0005467/0.0005474, allocations: 12 kB / 281.5 MB, free: 3.312 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09023/0.0908, allocations: 47.58 MB / 329.1 MB, free: 3.664 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.007406/0.09824, allocations: 7.658 MB / 336.7 MB, free: 11.96 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004322/0.1026, allocations: 2.666 MB / 339.4 MB, free: 9.285 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005743/0.1032, allocations: 23.94 kB / 339.4 MB, free: 9.262 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001243/0.1045, allocations: 0.4941 MB / 339.9 MB, free: 8.766 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000909/0.1054, allocations: 417.1 kB / 340.3 MB, free: 8.355 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004185/0.1058, allocations: 223.8 kB / 340.5 MB, free: 8.137 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00121/0.107, allocations: 1.432 MB / 342 MB, free: 6.699 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000633/0.1077, allocations: 0.4929 MB / 342.5 MB, free: 6.184 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005296/0.1082, allocations: 481.7 kB / 342.9 MB, free: 5.711 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005293/0.1087, allocations: 0.5363 MB / 343.5 MB, free: 5.172 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001018/0.1089, allocations: 64 kB / 343.5 MB, free: 5.109 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002414/0.1091, allocations: 104 kB / 343.6 MB, free: 5.008 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001474/0.1093, allocations: 202.9 kB / 343.8 MB, free: 4.809 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004611/0.1097, allocations: 0.6079 MB / 344.4 MB, free: 4.191 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001235/0.111, allocations: 1.642 MB / 346.1 MB, free: 2.543 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.111, allocations: 4 kB / 346.1 MB, free: 2.539 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.111, allocations: 3.938 kB / 346.1 MB, free: 2.535 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.443e-05/0.111, allocations: 0 / 346.1 MB, free: 2.535 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.001952/0.113, allocations: 1.285 MB / 347.4 MB, free: 1.195 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.113, allocations: 8.031 kB / 347.4 MB, free: 1.188 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001598/0.1132, allocations: 152.4 kB / 347.5 MB, free: 1.031 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000602/0.1138, allocations: 195.3 kB / 347.7 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009971/0.1148, allocations: 0.7422 MB / 348.5 MB, free: 56 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.984e-05/0.1149, allocations: 74.08 kB / 348.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001285/0.115, allocations: 99.91 kB / 348.6 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001508/0.1165, allocations: 0.9542 MB / 349.6 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.931e-05/0.1166, allocations: 4 kB / 349.6 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.461e-05/0.1166, allocations: 40 kB / 349.6 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.922e-05/0.1167, allocations: 24 kB / 349.6 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001203/0.1179, allocations: 0.6714 MB / 350.3 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004576/0.1225, allocations: 3.973 MB / 354.3 MB, free: 9.965 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007139/0.1232, allocations: 451.9 kB / 354.7 MB, free: 9.496 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000565/0.1238, allocations: 276.7 kB / 355 MB, free: 9.223 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.039e-05/0.1238, allocations: 4 kB / 355 MB, free: 9.219 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.386e-05/0.1238, allocations: 38.56 kB / 355 MB, free: 9.172 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.054e-06/0.1239, allocations: 0 / 355 MB, free: 9.172 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002787/0.1266, allocations: 1.591 MB / 356.6 MB, free: 7.488 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.82e-05/0.1267, allocations: 81.11 kB / 356.7 MB, free: 7.391 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001092/0.1278, allocations: 0.8448 MB / 357.6 MB, free: 6.535 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.155e-05/0.1279, allocations: 33.7 kB / 357.6 MB, free: 6.496 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003742/0.1282, allocations: 0.5565 MB / 358.2 MB, free: 5.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001174/0.1284, allocations: 161.7 kB / 358.3 MB, free: 5.77 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.711e-05/0.1285, allocations: 61.69 kB / 358.4 MB, free: 5.703 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.1286, allocations: 341.9 kB / 358.7 MB, free: 5.363 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003468/0.1289, allocations: 173.9 kB / 358.9 MB, free: 5.191 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005185/0.1295, allocations: 487.6 kB / 359.3 MB, free: 4.582 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009312/0.1304, allocations: 0.6914 MB / 360 MB, free: 3.758 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.1304, allocations: 8 kB / 360 MB, free: 3.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00131/0.1318, allocations: 0.7943 MB / 360.8 MB, free: 2.941 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.446e-05/0.1318, allocations: 12 kB / 360.9 MB, free: 2.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.427e-05/0.1318, allocations: 8.25 kB / 360.9 MB, free: 2.922 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002802/0.1321, allocations: 93.55 kB / 361 MB, free: 2.824 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005055/0.1326, allocations: 155.8 kB / 361.1 MB, free: 2.672 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002303/0.1349, allocations: 2.884 MB / 364 MB, free: 15.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007097/0.1357, allocations: 43.95 kB / 364 MB, free: 15.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.547e-05/0.1357, allocations: 40 kB / 364.1 MB, free: 15.44 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004692/0.1362, allocations: 257.5 kB / 364.3 MB, free: 15.18 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000115/0.1363, allocations: 86.97 kB / 364.4 MB, free: 15.09 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001004/0.1373, allocations: 0.5185 MB / 364.9 MB, free: 14.56 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.1373, allocations: 4.094 kB / 364.9 MB, free: 14.56 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/0.1374, allocations: 7.984 kB / 364.9 MB, free: 14.55 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.1374, allocations: 3.938 kB / 364.9 MB, free: 14.55 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002094/0.1395, allocations: 1.492 MB / 366.4 MB, free: 12.97 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.1395, allocations: 3.938 kB / 366.4 MB, free: 12.96 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003103/0.1398, allocations: 71.91 kB / 366.5 MB, free: 12.89 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002007/0.14, allocations: 81.89 kB / 366.6 MB, free: 12.81 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.55e-05/0.14, allocations: 8 kB / 366.6 MB, free: 12.8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002039/0.1421, allocations: 2.86 MB / 369.5 MB, free: 9.672 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.1421, allocations: 4.031 kB / 369.5 MB, free: 9.668 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001266/0.1434, allocations: 0.8166 MB / 370.3 MB, free: 8.801 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002745/0.1437, allocations: 204 kB / 370.5 MB, free: 8.582 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.176e-05/0.1438, allocations: 15.94 kB / 370.5 MB, free: 8.566 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004186/0.1442, allocations: 31.98 kB / 370.5 MB, free: 8.535 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.054e-05/0.1443, allocations: 35.89 kB / 370.6 MB, free: 8.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.728e-05/0.1443, allocations: 19.98 kB / 370.6 MB, free: 8.48 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007619/0.1451, allocations: 0.5693 MB / 371.1 MB, free: 7.914 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.1451, allocations: 0 / 371.1 MB, free: 7.914 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008655/0.146, allocations: 212 kB / 371.4 MB, free: 7.707 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001643/0.1476, allocations: 1.388 MB / 372.7 MB, free: 6.258 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001215/0.1488, allocations: 0.7099 MB / 373.5 MB, free: 5.523 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.1489, allocations: 0 / 373.5 MB, free: 5.523 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006776/0.1495, allocations: 470.2 kB / 373.9 MB, free: 5.039 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001288/0.1508, allocations: 211.5 kB / 374.1 MB, free: 4.836 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1587/0.3096, allocations: 8.512 MB / 382.6 MB, free: 49.52 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000453/0.3101, allocations: 1.011 MB / 383.6 MB, free: 48.82 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005281/0.3106, allocations: 108.4 kB / 383.7 MB, free: 48.81 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004415/0.3111, allocations: 388 kB / 384.1 MB, free: 48.8 MB / 318.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3111, allocations: 1.25 kB / 384.1 MB, free: 48.8 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03853/0.3496, allocations: 18.17 MB / 402.3 MB, free: 39.71 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001494/0.3498, allocations: 247.2 kB / 402.5 MB, free: 39.45 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.14/2.49, allocations: 0 / 402.5 MB, free: 39.45 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches