Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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.DCSE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",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.001087/0.001087, allocations: 92.48 kB / 16.65 MB, free: 6.59 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.001379/0.001379, allocations: 182.9 kB / 17.56 MB, free: 6.203 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.319/1.319, allocations: 223.3 MB / 241.6 MB, free: 108 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002502/0.0002502, allocations: 4 kB / 301.5 MB, free: 6.016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09165/0.09192, allocations: 50.41 MB / 352 MB, free: 3.594 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.007919/0.09987, allocations: 7.556 MB / 359.5 MB, free: 12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004359/0.1043, allocations: 2.583 MB / 362.1 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009707/0.1053, allocations: 23.94 kB / 362.1 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001374/0.1067, allocations: 0.4941 MB / 362.6 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001039/0.1077, allocations: 405.2 kB / 363 MB, free: 8.484 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004247/0.1081, allocations: 219.8 kB / 363.2 MB, free: 8.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001225/0.1094, allocations: 1.404 MB / 364.6 MB, free: 6.863 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006507/0.11, allocations: 0.4928 MB / 365.1 MB, free: 6.348 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004847/0.1105, allocations: 461.8 kB / 365.6 MB, free: 5.895 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005167/0.1111, allocations: 0.5208 MB / 366.1 MB, free: 5.371 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000105/0.1112, allocations: 64 kB / 366.2 MB, free: 5.309 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002421/0.1114, allocations: 104 kB / 366.3 MB, free: 5.207 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001486/0.1116, allocations: 207 kB / 366.5 MB, free: 5.004 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004691/0.1121, allocations: 0.6001 MB / 367.1 MB, free: 4.395 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001243/0.1133, allocations: 1.619 MB / 368.7 MB, free: 2.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.1133, allocations: 0 / 368.7 MB, free: 2.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1133, allocations: 0 / 368.7 MB, free: 2.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.313e-05/0.1133, allocations: 0 / 368.7 MB, free: 2.77 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.001903/0.1153, allocations: 1.25 MB / 369.9 MB, free: 1.465 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/0.1153, allocations: 8.031 kB / 369.9 MB, free: 1.457 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001638/0.1155, allocations: 152.4 kB / 370.1 MB, free: 1.301 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006361/0.1161, allocations: 191.3 kB / 370.3 MB, free: 1.113 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001043/0.1172, allocations: 0.7221 MB / 371 MB, free: 356 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.439e-05/0.1172, allocations: 74 kB / 371.1 MB, free: 280 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001279/0.1174, allocations: 99.91 kB / 371.2 MB, free: 180 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.168/0.2854, allocations: 0.9389 MB / 372.1 MB, free: 24.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.274e-05/0.2855, allocations: 2.047 kB / 372.1 MB, free: 24.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.807e-05/0.2856, allocations: 42.97 kB / 372.1 MB, free: 24.14 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.114e-05/0.2856, allocations: 29.48 kB / 372.2 MB, free: 24.14 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001341/0.287, allocations: 0.6391 MB / 372.8 MB, free: 24.13 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005056/0.2921, allocations: 3.952 MB / 376.8 MB, free: 21.9 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006486/0.2927, allocations: 444.8 kB / 377.2 MB, free: 21.64 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005792/0.2933, allocations: 267.3 kB / 377.5 MB, free: 21.56 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.425e-05/0.2934, allocations: 5.203 kB / 377.5 MB, free: 21.56 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.645e-05/0.2934, allocations: 37.64 kB / 377.5 MB, free: 21.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.564e-06/0.2934, allocations: 0 / 377.5 MB, free: 21.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002583/0.296, allocations: 1.423 MB / 378.9 MB, free: 20.62 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.908e-05/0.296, allocations: 82.08 kB / 379 MB, free: 20.53 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001094/0.2971, allocations: 0.8273 MB / 379.8 MB, free: 20.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.725e-05/0.2972, allocations: 30.8 kB / 379.9 MB, free: 20.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000308/0.2975, allocations: 0.5582 MB / 380.4 MB, free: 19.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001027/0.2976, allocations: 159.1 kB / 380.6 MB, free: 19.56 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.009e-05/0.2977, allocations: 61 kB / 380.6 MB, free: 19.52 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.402e-05/0.2978, allocations: 333.9 kB / 381 MB, free: 19.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003641/0.2981, allocations: 168.7 kB / 381.1 MB, free: 19.15 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004857/0.2986, allocations: 469.8 kB / 381.6 MB, free: 18.71 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008289/0.2995, allocations: 0.6704 MB / 382.3 MB, free: 18.14 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.2995, allocations: 7.562 kB / 382.3 MB, free: 18.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001404/0.3009, allocations: 0.7724 MB / 383 MB, free: 17.79 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.843e-05/0.3009, allocations: 12.62 kB / 383 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.75e-05/0.301, allocations: 10.22 kB / 383.1 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002992/0.3013, allocations: 85.67 kB / 383.1 MB, free: 17.76 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005198/0.3018, allocations: 153.4 kB / 383.3 MB, free: 17.74 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002061/0.3039, allocations: 2.873 MB / 386.2 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007471/0.3046, allocations: 37.66 kB / 386.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.873e-05/0.3047, allocations: 40.95 kB / 386.2 MB, free: 14.89 MB / 302.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 (84): * Single equations (assignments): 82 * 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.0005235/0.3052, allocations: 259.4 kB / 386.5 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001278/0.3054, allocations: 84.47 kB / 386.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00107/0.3064, allocations: 0.4914 MB / 387.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.3065, allocations: 8.266 kB / 387.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.3065, allocations: 1.844 kB / 387.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/0.3065, allocations: 3.547 kB / 387.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002551/0.309, allocations: 1.442 MB / 388.5 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.311e-06/0.3091, allocations: 2.766 kB / 388.5 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003439/0.3094, allocations: 78.12 kB / 388.6 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002403/0.3097, allocations: 71.83 kB / 388.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.03e-05/0.3097, allocations: 12.73 kB / 388.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001842/0.3116, allocations: 2.871 MB / 391.6 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.3116, allocations: 2.438 kB / 391.6 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001536/0.3131, allocations: 0.7825 MB / 392.3 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003953/0.3135, allocations: 198.3 kB / 392.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.819e-05/0.3136, allocations: 9.656 kB / 392.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004355/0.3141, allocations: 30.81 kB / 392.6 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.659e-05/0.3142, allocations: 35.8 kB / 392.6 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.771e-05/0.3142, allocations: 18.31 kB / 392.6 MB, free: 10.06 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008699/0.3151, allocations: 0.5606 MB / 393.2 MB, free: 9.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3151, allocations: 0 / 393.2 MB, free: 9.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009951/0.3161, allocations: 207.9 kB / 393.4 MB, free: 9.801 MB / 302.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 (38): * Single equations (assignments): 36 * 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.001441/0.3176, allocations: 1.351 MB / 394.7 MB, free: 8.793 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001159/0.3187, allocations: 0.6962 MB / 395.4 MB, free: 8.406 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.3187, allocations: 1.125 kB / 395.4 MB, free: 8.406 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005722/0.3193, allocations: 450.7 kB / 395.9 MB, free: 8.102 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001264/0.3206, allocations: 215.8 kB / 396.1 MB, free: 8.023 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01028/0.3309, allocations: 8.319 MB / 404.4 MB, free: 2.008 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003803/0.3313, allocations: 1.001 MB / 405.4 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004566/0.3318, allocations: 115.1 kB / 405.5 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003362/0.3321, allocations: 375.2 kB / 405.9 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3321, allocations: 0 / 405.9 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5719/0.9041, allocations: 17.85 MB / 423.7 MB, free: 14.95 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002798/0.9044, allocations: 236.5 kB / 424 MB, free: 14.7 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.218/3.123, allocations: 0 / 424 MB, free: 14.7 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches