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.0008497/0.0008497, allocations: 94.39 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009949/0.0009949, allocations: 200.9 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.228/1.228, allocations: 227.7 MB / 246.8 MB, free: 9.648 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001912/0.0001912, allocations: 4.234 kB / 307.8 MB, free: 0.5039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08087/0.08108, allocations: 51.52 MB / 359.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01028/0.09139, allocations: 11.49 MB / 370.9 MB, free: 1.426 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1488/0.2403, allocations: 3.237 MB / 374.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006347/0.2409, allocations: 35.94 kB / 374.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0013/0.2422, allocations: 0.5697 MB / 374.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001267/0.2435, allocations: 0.6304 MB / 375.3 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006257/0.2441, allocations: 357.6 kB / 375.7 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001818/0.246, allocations: 2.276 MB / 378 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009063/0.2469, allocations: 0.8602 MB / 378.8 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007644/0.2476, allocations: 0.7529 MB / 379.6 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007673/0.2484, allocations: 0.8386 MB / 380.4 MB, free: 8.699 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001655/0.2486, allocations: 108.1 kB / 380.5 MB, free: 8.699 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003517/0.249, allocations: 146.2 kB / 380.7 MB, free: 8.695 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002065/0.2492, allocations: 325.4 kB / 381 MB, free: 8.488 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006716/0.2498, allocations: 0.9611 MB / 381.9 MB, free: 7.898 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002097/0.252, allocations: 2.652 MB / 384.6 MB, free: 7.207 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.252, allocations: 0 / 384.6 MB, free: 7.207 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.252, allocations: 0 / 384.6 MB, free: 7.207 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.776e-05/0.252, allocations: 0 / 384.6 MB, free: 7.207 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.002561/0.2546, allocations: 1.837 MB / 386.4 MB, free: 6.059 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.2546, allocations: 10 kB / 386.4 MB, free: 6.059 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000209/0.2548, allocations: 223.9 kB / 386.6 MB, free: 5.914 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000776/0.2556, allocations: 299.5 kB / 386.9 MB, free: 5.793 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00132/0.2569, allocations: 1.101 MB / 388 MB, free: 4.992 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.945e-05/0.257, allocations: 113.2 kB / 388.2 MB, free: 4.941 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001886/0.2572, allocations: 160.7 kB / 388.3 MB, free: 4.883 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002195/0.2594, allocations: 1.526 MB / 389.8 MB, free: 3.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.456e-05/0.2595, allocations: 8 kB / 389.8 MB, free: 3.926 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000106/0.2596, allocations: 66.38 kB / 389.9 MB, free: 3.875 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.996e-05/0.2596, allocations: 37.72 kB / 389.9 MB, free: 3.875 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001844/0.2615, allocations: 1.07 MB / 391 MB, free: 3.355 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006435/0.2679, allocations: 6.302 MB / 397.3 MB, free: 14.19 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001512/0.2694, allocations: 0.6394 MB / 398 MB, free: 13.85 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008694/0.2703, allocations: 463 kB / 398.4 MB, free: 13.65 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.871e-05/0.2704, allocations: 14.31 kB / 398.4 MB, free: 13.64 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.886e-05/0.2704, allocations: 43.25 kB / 398.5 MB, free: 13.6 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 2.064e-06/0.2704, allocations: 4 kB / 398.5 MB, free: 13.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.004825/0.2752, allocations: 2.464 MB / 400.9 MB, free: 12.05 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.866e-05/0.2753, allocations: 112.3 kB / 401 MB, free: 11.93 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001696/0.277, allocations: 1.31 MB / 402.4 MB, free: 11.2 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.633e-05/0.2771, allocations: 37.02 kB / 402.4 MB, free: 11.16 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005797/0.2777, allocations: 0.8426 MB / 403.2 MB, free: 10.41 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000178/0.2779, allocations: 262.8 kB / 403.5 MB, free: 10.19 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001106/0.278, allocations: 92.48 kB / 403.6 MB, free: 10.12 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.2781, allocations: 353.9 kB / 403.9 MB, free: 9.781 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005531/0.2787, allocations: 290.6 kB / 404.2 MB, free: 9.648 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008296/0.2795, allocations: 0.7483 MB / 405 MB, free: 8.887 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001496/0.281, allocations: 1.107 MB / 406.1 MB, free: 7.941 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.281, allocations: 10.44 kB / 406.1 MB, free: 7.938 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002232/0.2833, allocations: 1.303 MB / 407.4 MB, free: 6.906 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.334e-05/0.2833, allocations: 12.5 kB / 407.4 MB, free: 6.895 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.449e-05/0.2833, allocations: 16 kB / 407.4 MB, free: 6.879 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004618/0.2838, allocations: 150.4 kB / 407.6 MB, free: 6.723 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008073/0.2846, allocations: 251.6 kB / 407.8 MB, free: 6.477 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00339/0.288, allocations: 4.327 MB / 412.1 MB, free: 1.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008255/0.2889, allocations: 71.81 kB / 412.2 MB, free: 1.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.524e-05/0.2889, allocations: 52 kB / 412.2 MB, free: 1.629 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.0005184/0.2895, allocations: 361.4 kB / 412.6 MB, free: 1.266 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001737/0.2896, allocations: 138.3 kB / 412.7 MB, free: 1.129 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001713/0.2914, allocations: 0.8685 MB / 413.6 MB, free: 244 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.2914, allocations: 8 kB / 413.6 MB, free: 236 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.2914, allocations: 0 / 413.6 MB, free: 236 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.2914, allocations: 3.984 kB / 413.6 MB, free: 232 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003536/0.2949, allocations: 2.379 MB / 416 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-06/0.295, allocations: 8.094 kB / 416 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005432/0.2955, allocations: 131.8 kB / 416.1 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004064/0.2959, allocations: 146.5 kB / 416.3 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.933e-05/0.296, allocations: 16 kB / 416.3 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003636/0.2996, allocations: 4.46 MB / 420.7 MB, free: 8.578 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.2996, allocations: 4 kB / 420.8 MB, free: 8.574 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002198/0.3018, allocations: 1.354 MB / 422.1 MB, free: 7.145 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003428/0.3022, allocations: 279.4 kB / 422.4 MB, free: 6.852 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001473/0.3023, allocations: 19.94 kB / 422.4 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006081/0.303, allocations: 47.97 kB / 422.4 MB, free: 6.785 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.963e-05/0.3031, allocations: 56.42 kB / 422.5 MB, free: 6.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.061e-05/0.3031, allocations: 31.94 kB / 422.5 MB, free: 6.699 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001126/0.3042, allocations: 0.8819 MB / 423.4 MB, free: 5.816 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3043, allocations: 0 / 423.4 MB, free: 5.816 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001028/0.3053, allocations: 332 kB / 423.7 MB, free: 5.492 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.002542/0.3078, allocations: 1.93 MB / 425.7 MB, free: 3.484 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001675/0.3095, allocations: 1.144 MB / 426.8 MB, free: 2.305 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3095, allocations: 0 / 426.8 MB, free: 2.305 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009291/0.3105, allocations: 0.7158 MB / 427.5 MB, free: 1.547 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00207/0.3126, allocations: 350.9 kB / 427.9 MB, free: 1.211 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02003/0.3326, allocations: 13.95 MB / 441.8 MB, free: 2.117 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007465/0.3334, allocations: 1.21 MB / 443 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006624/0.334, allocations: 171.5 kB / 443.2 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007082/0.3348, allocations: 0.6086 MB / 443.8 MB, free: 104 kB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3348, allocations: 4 kB / 443.8 MB, free: 100 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04596/0.3807, allocations: 29.19 MB / 473 MB, free: 3.305 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002149/0.381, allocations: 253.7 kB / 473.2 MB, free: 3.051 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.251/2.632, allocations: 0 / 473.2 MB, free: 3.051 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