Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001241/0.001241, allocations: 105.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001326/0.001326, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.181/1.181, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001063/0.001063, allocations: 65.03 kB / 307.1 MB, free: 500 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08044/0.08152, allocations: 50.53 MB / 357.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01235/0.09391, allocations: 12.16 MB / 369.8 MB, free: 1.734 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1342/0.2281, allocations: 3.297 MB / 373.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001349/0.2295, allocations: 38.81 kB / 373.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001798/0.2313, allocations: 0.6648 MB / 373.8 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001931/0.2333, allocations: 0.73 MB / 374.5 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008704/0.2342, allocations: 401.7 kB / 374.9 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002453/0.2366, allocations: 2.393 MB / 377.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001014/0.2376, allocations: 1.003 MB / 378.3 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009601/0.2386, allocations: 0.902 MB / 379.2 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007892/0.2394, allocations: 0.9835 MB / 380.2 MB, free: 8.762 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002419/0.2397, allocations: 230.2 kB / 380.4 MB, free: 8.762 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004269/0.2401, allocations: 265.8 kB / 380.6 MB, free: 8.754 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002436/0.2403, allocations: 460.4 kB / 381.1 MB, free: 8.422 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006858/0.241, allocations: 1.074 MB / 382.2 MB, free: 7.742 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002181/0.2432, allocations: 2.794 MB / 385 MB, free: 6.742 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.2432, allocations: 4 kB / 385 MB, free: 6.738 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2432, allocations: 0 / 385 MB, free: 6.738 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.171e-05/0.2433, allocations: 1.031 kB / 385 MB, free: 6.738 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.002918/0.2462, allocations: 2.156 MB / 387.1 MB, free: 5.371 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.2463, allocations: 9.594 kB / 387.1 MB, free: 5.371 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002063/0.2465, allocations: 222 kB / 387.3 MB, free: 5.227 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007864/0.2473, allocations: 285.7 kB / 387.6 MB, free: 5.117 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001291/0.2486, allocations: 1.098 MB / 388.7 MB, free: 4.406 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.592e-05/0.2486, allocations: 121.2 kB / 388.8 MB, free: 4.348 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001766/0.2488, allocations: 162.5 kB / 389 MB, free: 4.289 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001991/0.2508, allocations: 1.508 MB / 390.5 MB, free: 3.453 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.077e-05/0.2509, allocations: 8.094 kB / 390.5 MB, free: 3.449 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001032/0.251, allocations: 65.62 kB / 390.6 MB, free: 3.398 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.7e-05/0.251, allocations: 38.06 kB / 390.6 MB, free: 3.398 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001706/0.2527, allocations: 1.052 MB / 391.7 MB, free: 2.875 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006246/0.259, allocations: 6.294 MB / 398 MB, free: 13.7 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00141/0.2604, allocations: 0.6113 MB / 398.6 MB, free: 13.37 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008313/0.2612, allocations: 463.8 kB / 399 MB, free: 13.16 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.034e-05/0.2613, allocations: 13.69 kB / 399 MB, free: 13.15 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.755e-05/0.2613, allocations: 43.12 kB / 399.1 MB, free: 13.11 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 2.144e-06/0.2613, allocations: 0 / 399.1 MB, free: 13.11 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.004335/0.2657, allocations: 2.362 MB / 401.4 MB, free: 11.58 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.486e-05/0.2657, allocations: 111.6 kB / 401.6 MB, free: 11.45 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001445/0.2672, allocations: 1.301 MB / 402.9 MB, free: 10.73 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.063e-05/0.2672, allocations: 36.83 kB / 402.9 MB, free: 10.69 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005314/0.2678, allocations: 0.8473 MB / 403.7 MB, free: 9.941 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001612/0.268, allocations: 263.5 kB / 404 MB, free: 9.719 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002384/0.2682, allocations: 203.6 kB / 404.2 MB, free: 9.59 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.2683, allocations: 355.8 kB / 404.5 MB, free: 9.246 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004987/0.2688, allocations: 288.7 kB / 404.8 MB, free: 9.109 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007834/0.2696, allocations: 0.7281 MB / 405.6 MB, free: 8.352 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001387/0.271, allocations: 1.091 MB / 406.6 MB, free: 7.273 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.133e-06/0.271, allocations: 4 kB / 406.6 MB, free: 7.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002133/0.2732, allocations: 1.268 MB / 407.9 MB, free: 5.984 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.2732, allocations: 12 kB / 407.9 MB, free: 5.973 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.597e-05/0.2732, allocations: 16 kB / 407.9 MB, free: 5.957 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004447/0.2737, allocations: 138.7 kB / 408.1 MB, free: 5.812 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007578/0.2745, allocations: 251.6 kB / 408.3 MB, free: 5.566 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003368/0.2778, allocations: 4.633 MB / 413 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007885/0.2786, allocations: 59.94 kB / 413 MB, free: 472 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.586e-05/0.2787, allocations: 67.88 kB / 413.1 MB, free: 404 kB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0004501/0.2792, allocations: 368.2 kB / 413.4 MB, free: 28 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001835/0.2794, allocations: 138.4 kB / 413.6 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001571/0.2809, allocations: 0.8333 MB / 414.4 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.543e-06/0.281, allocations: 8 kB / 414.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.281, allocations: 3.938 kB / 414.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.625e-06/0.281, allocations: 3.984 kB / 414.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003337/0.2843, allocations: 2.335 MB / 416.8 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.2843, allocations: 4 kB / 416.8 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005263/0.2849, allocations: 127.9 kB / 416.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003823/0.2853, allocations: 146.7 kB / 417 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.109e-05/0.2853, allocations: 19.94 kB / 417.1 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003671/0.289, allocations: 4.788 MB / 421.8 MB, free: 7.07 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.289, allocations: 7.938 kB / 421.8 MB, free: 7.062 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002046/0.2911, allocations: 1.29 MB / 423.1 MB, free: 5.699 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003635/0.2914, allocations: 287.2 kB / 423.4 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001679/0.2916, allocations: 19.98 kB / 423.4 MB, free: 5.379 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005818/0.2922, allocations: 39.97 kB / 423.5 MB, free: 5.34 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.2923, allocations: 64.36 kB / 423.5 MB, free: 5.277 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.689e-05/0.2924, allocations: 20 kB / 423.6 MB, free: 5.258 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001091/0.2935, allocations: 0.882 MB / 424.4 MB, free: 4.375 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2935, allocations: 0 / 424.4 MB, free: 4.375 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001074/0.2945, allocations: 328 kB / 424.8 MB, free: 4.055 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002412/0.297, allocations: 1.873 MB / 426.6 MB, free: 2.098 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001843/0.2988, allocations: 1.148 MB / 427.8 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.2988, allocations: 0.9375 kB / 427.8 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009054/0.2997, allocations: 0.71 MB / 428.5 MB, free: 164 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001503/0.3013, allocations: 362.7 kB / 428.8 MB, free: 15.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01658/0.3178, allocations: 13.06 MB / 441.9 MB, free: 1.625 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007441/0.3186, allocations: 1.213 MB / 443.1 MB, free: 392 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000618/0.3192, allocations: 183.6 kB / 443.3 MB, free: 204 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007309/0.32, allocations: 0.6145 MB / 443.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of SimCode: time 2.6e-07/0.32, allocations: 0 / 443.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.237/1.557, allocations: 30.55 MB / 474.5 MB, free: 1.438 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.18/15.73, allocations: 11.42 kB / 474.5 MB, free: 1.43 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches