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.001486/0.001486, allocations: 108.1 kB / 17.15 MB, free: 6.309 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.001744/0.001744, allocations: 198 kB / 18.07 MB, free: 5.41 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.33/1.33, allocations: 205.1 MB / 223.9 MB, free: 12.46 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.001126/0.001126, allocations: 51.94 kB / 280.1 MB, free: 3.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08022/0.08136, allocations: 46.63 MB / 326.7 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.008119/0.08951, allocations: 8.145 MB / 334.8 MB, free: 12.59 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003614/0.09315, allocations: 2.701 MB / 337.5 MB, free: 9.883 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003767/0.09356, allocations: 27.94 kB / 337.6 MB, free: 9.855 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0011/0.09467, allocations: 498.1 kB / 338.1 MB, free: 9.367 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007238/0.09541, allocations: 413.1 kB / 338.5 MB, free: 8.961 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003625/0.09578, allocations: 227.8 kB / 338.7 MB, free: 8.738 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001136/0.09692, allocations: 1.428 MB / 340.1 MB, free: 7.305 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006142/0.09754, allocations: 0.5084 MB / 340.6 MB, free: 6.773 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004812/0.09803, allocations: 0.5055 MB / 341.1 MB, free: 6.266 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004996/0.09854, allocations: 0.5753 MB / 341.7 MB, free: 5.688 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001173/0.09867, allocations: 88 kB / 341.8 MB, free: 5.602 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002628/0.09894, allocations: 124 kB / 341.9 MB, free: 5.48 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001681/0.09911, allocations: 234.9 kB / 342.1 MB, free: 5.25 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005023/0.09962, allocations: 0.6179 MB / 342.8 MB, free: 4.629 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001342/0.101, allocations: 1.69 MB / 344.4 MB, free: 2.934 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.101, allocations: 0 / 344.4 MB, free: 2.934 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.101, allocations: 3.938 kB / 344.5 MB, free: 2.93 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.158e-05/0.101, allocations: 4 kB / 344.5 MB, free: 2.926 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.002243/0.1033, allocations: 1.476 MB / 345.9 MB, free: 1.395 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.1033, allocations: 16.03 kB / 345.9 MB, free: 1.379 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001607/0.1035, allocations: 148.4 kB / 346.1 MB, free: 1.227 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000643/0.1041, allocations: 187.3 kB / 346.3 MB, free: 1.043 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001/0.1051, allocations: 0.75 MB / 347 MB, free: 256 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.758e-05/0.1052, allocations: 70 kB / 347.1 MB, free: 188 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001191/0.1053, allocations: 103.9 kB / 347.2 MB, free: 84 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001487/0.1068, allocations: 0.9425 MB / 348.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.77e-05/0.1069, allocations: 7.969 kB / 348.1 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.526e-05/0.1069, allocations: 44 kB / 348.2 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.909e-05/0.107, allocations: 28 kB / 348.2 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001279/0.1083, allocations: 0.6442 MB / 348.9 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004721/0.113, allocations: 3.957 MB / 352.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006635/0.1137, allocations: 435.9 kB / 353.2 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006139/0.1143, allocations: 276.6 kB / 353.5 MB, free: 9.477 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.05e-05/0.1143, allocations: 4 kB / 353.5 MB, free: 9.473 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.76e-05/0.1144, allocations: 38.56 kB / 353.6 MB, free: 9.426 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.033e-06/0.1144, allocations: 0 / 353.6 MB, free: 9.426 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002795/0.1172, allocations: 1.552 MB / 355.1 MB, free: 7.781 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.322e-05/0.1173, allocations: 81.11 kB / 355.2 MB, free: 7.684 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00109/0.1184, allocations: 0.8371 MB / 356 MB, free: 6.836 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.069e-05/0.1184, allocations: 33.7 kB / 356.1 MB, free: 6.797 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003989/0.1188, allocations: 0.5681 MB / 356.6 MB, free: 6.219 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001062/0.119, allocations: 157.8 kB / 356.8 MB, free: 6.062 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001698/0.1191, allocations: 138.5 kB / 356.9 MB, free: 5.918 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.1193, allocations: 334 kB / 357.2 MB, free: 5.586 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003362/0.1196, allocations: 177.9 kB / 357.4 MB, free: 5.414 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005059/0.1201, allocations: 471.5 kB / 357.9 MB, free: 4.82 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008669/0.121, allocations: 0.6797 MB / 358.6 MB, free: 4.008 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.121, allocations: 0 / 358.6 MB, free: 4.008 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001248/0.1223, allocations: 0.7865 MB / 359.3 MB, free: 3.207 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.182e-05/0.1223, allocations: 8 kB / 359.3 MB, free: 3.199 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.307e-05/0.1223, allocations: 8 kB / 359.4 MB, free: 3.191 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002611/0.1226, allocations: 93.86 kB / 359.4 MB, free: 3.094 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004854/0.1231, allocations: 159.7 kB / 359.6 MB, free: 2.938 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002267/0.1253, allocations: 2.872 MB / 362.5 MB, free: 15.8 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004748/0.1258, allocations: 43.97 kB / 362.5 MB, free: 15.76 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.275e-05/0.1259, allocations: 32 kB / 362.5 MB, free: 15.73 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.0003521/0.1262, allocations: 269.6 kB / 362.8 MB, free: 15.45 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001224/0.1264, allocations: 82.97 kB / 362.9 MB, free: 15.37 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009197/0.1273, allocations: 0.5029 MB / 363.4 MB, free: 14.86 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.1273, allocations: 4 kB / 363.4 MB, free: 14.85 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.1273, allocations: 7.984 kB / 363.4 MB, free: 14.84 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.1273, allocations: 3.938 kB / 363.4 MB, free: 14.84 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002024/0.1294, allocations: 1.476 MB / 364.9 MB, free: 13.28 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.1294, allocations: 3.938 kB / 364.9 MB, free: 13.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003137/0.1297, allocations: 83.83 kB / 365 MB, free: 13.19 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001793/0.1299, allocations: 65.67 kB / 365 MB, free: 13.12 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.448e-05/0.1299, allocations: 16.19 kB / 365.1 MB, free: 13.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00204/0.132, allocations: 2.848 MB / 367.9 MB, free: 9.988 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.132, allocations: 8.094 kB / 367.9 MB, free: 9.98 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001184/0.1332, allocations: 0.7932 MB / 368.7 MB, free: 9.141 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002313/0.1334, allocations: 196 kB / 368.9 MB, free: 8.93 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001021/0.1335, allocations: 23.92 kB / 368.9 MB, free: 8.906 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004147/0.134, allocations: 23.98 kB / 368.9 MB, free: 8.883 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.193e-05/0.1341, allocations: 31.95 kB / 369 MB, free: 8.852 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-05/0.1341, allocations: 16 kB / 369 MB, free: 8.836 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006994/0.1348, allocations: 0.5732 MB / 369.6 MB, free: 8.266 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1348, allocations: 4 kB / 369.6 MB, free: 8.262 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007575/0.1356, allocations: 208 kB / 369.8 MB, free: 8.059 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.001592/0.1372, allocations: 1.365 MB / 371.1 MB, free: 6.633 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001093/0.1383, allocations: 0.6986 MB / 371.8 MB, free: 5.91 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.1383, allocations: 192 / 371.8 MB, free: 5.91 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006324/0.1389, allocations: 457.1 kB / 372.3 MB, free: 5.438 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001095/0.14, allocations: 215.8 kB / 372.5 MB, free: 5.23 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1368/0.2768, allocations: 8.383 MB / 380.9 MB, free: 50.64 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004222/0.2773, allocations: 1.008 MB / 381.9 MB, free: 49.94 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004526/0.2777, allocations: 111.4 kB / 382 MB, free: 49.93 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003935/0.2781, allocations: 387.9 kB / 382.4 MB, free: 49.92 MB / 318.1 MB Notification: Performance of SimCode: time 7.51e-07/0.2781, allocations: 1.781 kB / 382.4 MB, free: 49.92 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05486/0.333, allocations: 18.4 MB / 400.8 MB, free: 41.12 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000129/0.3332, allocations: 235.8 kB / 401 MB, free: 40.87 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.173/2.506, allocations: 0 / 401 MB, free: 40.87 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