Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001138/0.001138, allocations: 116.9 kB / 17.33 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001236/0.001236, allocations: 201.8 kB / 18.26 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002133/0.002133, allocations: 60.12 kB / 306.6 MB, free: 0.8438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1066, allocations: 50.53 MB / 357.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.008149/0.1147, allocations: 7.134 MB / 364.2 MB, free: 7.141 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003375/0.1181, allocations: 2.361 MB / 366.6 MB, free: 4.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006624/0.1188, allocations: 19.94 kB / 366.6 MB, free: 4.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001336/0.1202, allocations: 449.7 kB / 367 MB, free: 4.309 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009589/0.1212, allocations: 325.7 kB / 367.4 MB, free: 3.988 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004288/0.1216, allocations: 183.8 kB / 367.5 MB, free: 3.809 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001257/0.1229, allocations: 1.203 MB / 368.7 MB, free: 2.602 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006631/0.1235, allocations: 0.5037 MB / 369.2 MB, free: 2.078 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006864/0.1242, allocations: 466.1 kB / 369.7 MB, free: 1.621 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000719/0.125, allocations: 0.4899 MB / 370.2 MB, free: 1.129 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002434/0.1252, allocations: 112 kB / 370.3 MB, free: 1.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003936/0.1256, allocations: 156 kB / 370.5 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002015/0.1258, allocations: 223.2 kB / 370.7 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005874/0.1264, allocations: 0.552 MB / 371.2 MB, free: 96 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1724/0.2989, allocations: 1.406 MB / 372.6 MB, free: 11.85 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.2989, allocations: 0 / 372.6 MB, free: 11.85 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2989, allocations: 0 / 372.6 MB, free: 11.85 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.766e-05/0.299, allocations: 0 / 372.6 MB, free: 11.85 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002068/0.301, allocations: 1.246 MB / 373.9 MB, free: 11.15 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.104e-05/0.3011, allocations: 9.562 kB / 373.9 MB, free: 11.15 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001442/0.3013, allocations: 128.7 kB / 374 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004928/0.3018, allocations: 145 kB / 374.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009184/0.3027, allocations: 0.6394 MB / 374.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.447e-05/0.3027, allocations: 60.09 kB / 374.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001148/0.3029, allocations: 83.12 kB / 374.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001451/0.3043, allocations: 0.7801 MB / 375.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.125e-05/0.3044, allocations: 4.266 kB / 375.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.588e-05/0.3044, allocations: 35.16 kB / 375.8 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.573e-05/0.3045, allocations: 19.88 kB / 375.8 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001026/0.3055, allocations: 0.5209 MB / 376.3 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003843/0.3094, allocations: 3.386 MB / 379.7 MB, free: 8.969 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004716/0.3098, allocations: 232.1 kB / 379.9 MB, free: 8.906 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002398/0.3101, allocations: 118.6 kB / 380 MB, free: 8.859 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.413e-05/0.3101, allocations: 3.219 kB / 380 MB, free: 8.859 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.992e-05/0.3102, allocations: 38.36 kB / 380.1 MB, free: 8.816 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 2.064e-06/0.3102, allocations: 0 / 380.1 MB, free: 8.816 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.002046/0.3122, allocations: 1.04 MB / 381.1 MB, free: 8.117 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.767e-05/0.3123, allocations: 81.58 kB / 381.2 MB, free: 8.023 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001017/0.3133, allocations: 0.7357 MB / 381.9 MB, free: 7.695 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.506e-05/0.3133, allocations: 31.23 kB / 381.9 MB, free: 7.66 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002966/0.3136, allocations: 0.4941 MB / 382.4 MB, free: 7.262 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.773e-05/0.3137, allocations: 108.6 kB / 382.5 MB, free: 7.184 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001325/0.3138, allocations: 112.9 kB / 382.7 MB, free: 7.113 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.314, allocations: 379.4 kB / 383 MB, free: 6.773 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002736/0.3142, allocations: 125.5 kB / 383.2 MB, free: 6.734 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004074/0.3147, allocations: 418.8 kB / 383.6 MB, free: 6.312 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007332/0.3154, allocations: 0.5732 MB / 384.1 MB, free: 5.832 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.763e-06/0.3154, allocations: 4.141 kB / 384.1 MB, free: 5.832 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001052/0.3165, allocations: 0.6177 MB / 384.8 MB, free: 5.609 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.361e-05/0.3165, allocations: 10.34 kB / 384.8 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.458e-05/0.3165, allocations: 9.375 kB / 384.8 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000155/0.3167, allocations: 37.8 kB / 384.8 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004495/0.3172, allocations: 142.9 kB / 384.9 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008025/0.318, allocations: 1.39 MB / 386.3 MB, free: 4.184 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004813/0.3185, allocations: 32.92 kB / 386.4 MB, free: 4.172 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.09e-05/0.3185, allocations: 36.59 kB / 386.4 MB, free: 4.164 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002813/0.3188, allocations: 234 kB / 386.6 MB, free: 3.98 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001039/0.3189, allocations: 70.45 kB / 386.7 MB, free: 3.945 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006526/0.3196, allocations: 322.8 kB / 387 MB, free: 3.797 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.3196, allocations: 6.625 kB / 387 MB, free: 3.793 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.3196, allocations: 1.062 kB / 387 MB, free: 3.793 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.3196, allocations: 0.9844 kB / 387 MB, free: 3.793 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001607/0.3212, allocations: 1.106 MB / 388.1 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.3212, allocations: 2.312 kB / 388.1 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002582/0.3215, allocations: 56.97 kB / 388.2 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.739e-05/0.3216, allocations: 23.52 kB / 388.2 MB, free: 3.129 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.925e-05/0.3216, allocations: 14.47 kB / 388.2 MB, free: 3.121 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000608/0.3222, allocations: 1.37 MB / 389.6 MB, free: 1.723 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.06e-06/0.3222, allocations: 6 kB / 389.6 MB, free: 1.723 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000853/0.3231, allocations: 0.547 MB / 390.2 MB, free: 1.379 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001722/0.3233, allocations: 171.4 kB / 390.3 MB, free: 1.227 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.606e-05/0.3234, allocations: 11.25 kB / 390.3 MB, free: 1.219 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003291/0.3237, allocations: 18.47 kB / 390.3 MB, free: 1.215 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.84e-05/0.3238, allocations: 30.97 kB / 390.4 MB, free: 1.207 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.712e-05/0.3238, allocations: 8.656 kB / 390.4 MB, free: 1.207 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006113/0.3244, allocations: 0.5039 MB / 390.9 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3244, allocations: 0 / 390.9 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006956/0.3251, allocations: 162 kB / 391 MB, free: 0.9609 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.001005/0.3262, allocations: 1.125 MB / 392.2 MB, free: 72 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008848/0.327, allocations: 467.6 kB / 392.6 MB, free: 15.88 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.3271, allocations: 1.375 kB / 392.6 MB, free: 15.88 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000342/0.3274, allocations: 235.6 kB / 392.9 MB, free: 15.73 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009551/0.3284, allocations: 188.3 kB / 393 MB, free: 15.68 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01026/0.3387, allocations: 6.941 MB / 400 MB, free: 11.1 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007009/0.3394, allocations: 0.9449 MB / 400.9 MB, free: 10.3 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004387/0.3398, allocations: 86.42 kB / 401 MB, free: 10.25 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000419/0.3403, allocations: 302.1 kB / 401.3 MB, free: 9.996 MB / 318.1 MB Notification: Performance of SimCode: time 9.41e-07/0.3403, allocations: 1.156 kB / 401.3 MB, free: 9.996 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07129/0.4116, allocations: 14.94 MB / 416.3 MB, free: 13.89 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002427/0.4119, allocations: 237.1 kB / 416.5 MB, free: 13.62 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.252/2.664, allocations: 4 kB / 416.5 MB, free: 13.62 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches