Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.DCPM_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 108 kB / 16.92 MB, free: 6.332 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.001496/0.001496, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.363/1.363, allocations: 222.9 MB / 241.6 MB, free: 15.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00111/0.00111, allocations: 47.64 kB / 300.7 MB, free: 5.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0763/0.07743, allocations: 49.44 MB / 350.2 MB, free: 4.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01128/0.08873, allocations: 12.15 MB / 362.3 MB, free: 8.129 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004844/0.0936, allocations: 3.273 MB / 365.6 MB, free: 4.848 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001075/0.09469, allocations: 39.88 kB / 365.6 MB, free: 4.809 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001716/0.09644, allocations: 0.6672 MB / 366.3 MB, free: 4.137 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001889/0.09834, allocations: 0.7325 MB / 367 MB, free: 3.398 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007087/0.09906, allocations: 403.5 kB / 367.4 MB, free: 3.004 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002044/0.1011, allocations: 2.392 MB / 369.8 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.141/0.2421, allocations: 0.9916 MB / 370.8 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001451/0.2436, allocations: 0.8993 MB / 371.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001099/0.2447, allocations: 0.9761 MB / 372.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003394/0.245, allocations: 233.2 kB / 372.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006151/0.2457, allocations: 269.7 kB / 373.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000273/0.2459, allocations: 458.1 kB / 373.6 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009464/0.2469, allocations: 1.074 MB / 374.7 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002552/0.2494, allocations: 2.8 MB / 377.5 MB, free: 10.9 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.2495, allocations: 0 / 377.5 MB, free: 10.9 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.2495, allocations: 0 / 377.5 MB, free: 10.9 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.538e-05/0.2495, allocations: 2.844 kB / 377.5 MB, free: 10.9 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.003907/0.2534, allocations: 2.149 MB / 379.6 MB, free: 9.859 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.2535, allocations: 9.75 kB / 379.7 MB, free: 9.859 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002566/0.2538, allocations: 223.8 kB / 379.9 MB, free: 9.812 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008828/0.2546, allocations: 285.6 kB / 380.2 MB, free: 9.703 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001544/0.2562, allocations: 1.103 MB / 381.3 MB, free: 9.289 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.036e-05/0.2563, allocations: 117.2 kB / 381.4 MB, free: 9.285 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001779/0.2565, allocations: 155.6 kB / 381.5 MB, free: 9.281 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002232/0.2587, allocations: 1.511 MB / 383 MB, free: 8.613 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.927e-05/0.2588, allocations: 12.22 kB / 383 MB, free: 8.605 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001195/0.2589, allocations: 66.28 kB / 383.1 MB, free: 8.559 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.049e-05/0.2589, allocations: 38.06 kB / 383.2 MB, free: 8.559 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001932/0.2609, allocations: 1.05 MB / 384.2 MB, free: 8.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006418/0.2673, allocations: 6.292 MB / 390.5 MB, free: 3.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001418/0.2687, allocations: 0.6171 MB / 391.1 MB, free: 3.582 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008221/0.2696, allocations: 447.5 kB / 391.5 MB, free: 3.383 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.033e-05/0.2696, allocations: 11.56 kB / 391.6 MB, free: 3.383 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.363e-05/0.2697, allocations: 50.3 kB / 391.6 MB, free: 3.324 MB / 302.1 MB Notification: Performance of pre-optimization done (n=66): time 2.244e-06/0.2697, allocations: 0 / 391.6 MB, free: 3.324 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.004323/0.274, allocations: 2.367 MB / 394 MB, free: 1.809 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.02e-05/0.274, allocations: 112.7 kB / 394.1 MB, free: 1.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001546/0.2756, allocations: 1.302 MB / 395.4 MB, free: 0.957 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.012e-05/0.2757, allocations: 36.45 kB / 395.4 MB, free: 0.918 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003907/0.2761, allocations: 0.8491 MB / 396.3 MB, free: 172 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001547/0.2762, allocations: 269.1 kB / 396.5 MB, free: 15.94 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002699/0.2765, allocations: 203.8 kB / 396.7 MB, free: 15.81 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.2767, allocations: 351.5 kB / 397.1 MB, free: 15.47 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007532/0.2774, allocations: 283.8 kB / 397.4 MB, free: 15.34 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008848/0.2783, allocations: 0.7374 MB / 398.1 MB, free: 14.58 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001425/0.2798, allocations: 1.085 MB / 399.2 MB, free: 13.69 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/0.2798, allocations: 7.281 kB / 399.2 MB, free: 13.69 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002089/0.2819, allocations: 1.267 MB / 400.5 MB, free: 13.12 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.2819, allocations: 12.28 kB / 400.5 MB, free: 13.12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.524e-05/0.2819, allocations: 14.88 kB / 400.5 MB, free: 13.12 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004762/0.2824, allocations: 132.6 kB / 400.6 MB, free: 13.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007811/0.2832, allocations: 262.5 kB / 400.9 MB, free: 13 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003687/0.2869, allocations: 4.64 MB / 405.5 MB, free: 8.363 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009953/0.2879, allocations: 55.61 kB / 405.6 MB, free: 8.336 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.033e-05/0.288, allocations: 52.56 kB / 405.6 MB, free: 8.328 MB / 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.000578/0.2886, allocations: 371.2 kB / 406 MB, free: 8.066 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00018/0.2888, allocations: 134.8 kB / 406.1 MB, free: 7.996 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001715/0.2905, allocations: 0.835 MB / 406.9 MB, free: 7.504 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.2905, allocations: 6.375 kB / 406.9 MB, free: 7.504 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.2905, allocations: 7.062 kB / 407 MB, free: 7.5 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.2905, allocations: 3.984 kB / 407 MB, free: 7.496 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003817/0.2944, allocations: 2.328 MB / 409.3 MB, free: 5.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.652e-06/0.2944, allocations: 4 kB / 409.3 MB, free: 5.176 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005628/0.2949, allocations: 128.3 kB / 409.4 MB, free: 5.059 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000426/0.2954, allocations: 134.5 kB / 409.5 MB, free: 4.918 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.923e-05/0.2954, allocations: 27.92 kB / 409.6 MB, free: 4.891 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004373/0.2998, allocations: 4.778 MB / 414.3 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.721e-06/0.2998, allocations: 6.531 kB / 414.4 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002454/0.3023, allocations: 1.298 MB / 415.7 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000555/0.3029, allocations: 291.3 kB / 415.9 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002808/0.3032, allocations: 19.94 kB / 416 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007743/0.3039, allocations: 39.97 kB / 416 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001375/0.3041, allocations: 63.05 kB / 416.1 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.593e-05/0.3042, allocations: 27.98 kB / 416.1 MB, free: 13.91 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001564/0.3057, allocations: 0.8742 MB / 417 MB, free: 13.04 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3057, allocations: 0 / 417 MB, free: 13.04 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001561/0.3073, allocations: 332 kB / 417.3 MB, free: 12.71 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.00276/0.3101, allocations: 1.882 MB / 419.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002218/0.3123, allocations: 1.146 MB / 420.3 MB, free: 9.633 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.3123, allocations: 0 / 420.3 MB, free: 9.633 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009927/0.3133, allocations: 0.7121 MB / 421 MB, free: 8.906 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001845/0.3152, allocations: 357.1 kB / 421.4 MB, free: 8.562 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01978/0.335, allocations: 13.05 MB / 434.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000916/0.3359, allocations: 1.221 MB / 435.6 MB, free: 9.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007298/0.3367, allocations: 171.6 kB / 435.8 MB, free: 9.059 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007781/0.3375, allocations: 0.6125 MB / 436.4 MB, free: 8.449 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3375, allocations: 0 / 436.4 MB, free: 8.449 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1005/0.438, allocations: 30.52 MB / 466.9 MB, free: 10.35 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.51/15.95, allocations: 15.75 kB / 467 MB, free: 10.34 MB / 382.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches