Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.DCSE_SinglePhase,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001471/0.001471, allocations: 116 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001712/0.001712, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 227.4 MB / 246.4 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 63.41 kB / 306.6 MB, free: 0.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09994/0.1013, allocations: 50.54 MB / 357.1 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.008796/0.1101, allocations: 8.193 MB / 365.3 MB, free: 5.961 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004892/0.1151, allocations: 2.723 MB / 368 MB, free: 3.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001149/0.1162, allocations: 23.94 kB / 368 MB, free: 3.207 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00175/0.118, allocations: 0.498 MB / 368.5 MB, free: 2.707 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001577/0.1196, allocations: 413.1 kB / 368.9 MB, free: 2.301 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007347/0.1204, allocations: 239.8 kB / 369.2 MB, free: 2.066 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002181/0.1226, allocations: 1.501 MB / 370.7 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1643/0.2869, allocations: 0.5775 MB / 371.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001063/0.288, allocations: 0.5716 MB / 371.8 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005898/0.2886, allocations: 0.6092 MB / 372.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001881/0.2888, allocations: 139.5 kB / 372.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003626/0.2892, allocations: 184.5 kB / 372.8 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001888/0.2894, allocations: 287.4 kB / 373 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005133/0.2899, allocations: 0.6762 MB / 373.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001682/0.2916, allocations: 1.741 MB / 375.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2916, allocations: 1.016 kB / 375.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2916, allocations: 1.375 kB / 375.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.802e-05/0.2916, allocations: 0.5938 kB / 375.5 MB, free: 10.09 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002185/0.2938, allocations: 1.481 MB / 376.9 MB, free: 9.305 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.2939, allocations: 9.875 kB / 376.9 MB, free: 9.305 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001593/0.294, allocations: 151.1 kB / 377.1 MB, free: 9.266 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007267/0.2948, allocations: 197.7 kB / 377.3 MB, free: 9.199 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009919/0.2958, allocations: 0.7565 MB / 378 MB, free: 8.863 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.974e-05/0.2958, allocations: 75.66 kB / 378.1 MB, free: 8.859 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001275/0.296, allocations: 97.58 kB / 378.2 MB, free: 8.859 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001533/0.2975, allocations: 0.9452 MB / 379.2 MB, free: 8.746 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.365e-05/0.2975, allocations: 5.062 kB / 379.2 MB, free: 8.742 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.857e-05/0.2976, allocations: 44.3 kB / 379.2 MB, free: 8.742 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.036e-05/0.2976, allocations: 24.44 kB / 379.2 MB, free: 8.742 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001202/0.2989, allocations: 0.6493 MB / 379.9 MB, free: 8.637 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004603/0.3035, allocations: 3.946 MB / 383.8 MB, free: 6.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007177/0.3042, allocations: 448.9 kB / 384.3 MB, free: 5.809 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005597/0.3048, allocations: 268.7 kB / 384.5 MB, free: 5.727 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.166e-05/0.3048, allocations: 7.328 kB / 384.5 MB, free: 5.727 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.046e-05/0.3049, allocations: 38.89 kB / 384.6 MB, free: 5.684 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.755e-06/0.3049, allocations: 4 kB / 384.6 MB, free: 5.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.00303/0.3079, allocations: 1.541 MB / 386.1 MB, free: 4.695 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.44e-05/0.308, allocations: 86.48 kB / 386.2 MB, free: 4.598 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001179/0.3091, allocations: 0.8474 MB / 387 MB, free: 4.227 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.665e-05/0.3092, allocations: 36.64 kB / 387.1 MB, free: 4.188 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003419/0.3095, allocations: 0.5668 MB / 387.7 MB, free: 3.738 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001136/0.3097, allocations: 163.4 kB / 387.8 MB, free: 3.613 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001889/0.3098, allocations: 126.8 kB / 387.9 MB, free: 3.539 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.874e-05/0.3099, allocations: 337 kB / 388.3 MB, free: 3.223 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003584/0.3103, allocations: 176.4 kB / 388.4 MB, free: 3.164 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004661/0.3108, allocations: 469.5 kB / 388.9 MB, free: 2.723 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008919/0.3117, allocations: 0.6721 MB / 389.6 MB, free: 2.195 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.933e-06/0.3117, allocations: 3.719 kB / 389.6 MB, free: 2.195 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001488/0.3132, allocations: 0.7878 MB / 390.4 MB, free: 1.895 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/0.3132, allocations: 8.906 kB / 390.4 MB, free: 1.895 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.852e-05/0.3133, allocations: 13.11 kB / 390.4 MB, free: 1.895 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002755/0.3135, allocations: 88.39 kB / 390.5 MB, free: 1.859 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000515/0.3141, allocations: 159.7 kB / 390.6 MB, free: 1.855 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002277/0.3163, allocations: 3.141 MB / 393.8 MB, free: 14.79 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006856/0.317, allocations: 41.42 kB / 393.8 MB, free: 14.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.234e-05/0.3171, allocations: 31.28 kB / 393.8 MB, free: 14.77 MB / 318.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 (85): * Single equations (assignments): 83 * 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.0004655/0.3176, allocations: 269.2 kB / 394.1 MB, free: 14.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001411/0.3177, allocations: 90 kB / 394.2 MB, free: 14.52 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001017/0.3188, allocations: 0.4993 MB / 394.7 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.3188, allocations: 6.891 kB / 394.7 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.798e-06/0.3188, allocations: 1.156 kB / 394.7 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.3188, allocations: 4.938 kB / 394.7 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002301/0.3211, allocations: 1.481 MB / 396.2 MB, free: 13.42 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.3211, allocations: 2.188 kB / 396.2 MB, free: 13.42 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003209/0.3214, allocations: 75.16 kB / 396.3 MB, free: 13.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000198/0.3217, allocations: 73.34 kB / 396.3 MB, free: 13.37 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.923e-05/0.3217, allocations: 13.5 kB / 396.3 MB, free: 13.36 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002292/0.324, allocations: 3.126 MB / 399.5 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.324, allocations: 2.812 kB / 399.5 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00131/0.3253, allocations: 0.8061 MB / 400.3 MB, free: 9.691 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000294/0.3256, allocations: 201.2 kB / 400.5 MB, free: 9.5 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000112/0.3258, allocations: 8.781 kB / 400.5 MB, free: 9.496 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004492/0.3262, allocations: 33.06 kB / 400.5 MB, free: 9.48 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.941e-05/0.3263, allocations: 37.2 kB / 400.5 MB, free: 9.461 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.793e-05/0.3263, allocations: 22.94 kB / 400.6 MB, free: 9.453 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007635/0.3271, allocations: 0.5701 MB / 401.1 MB, free: 9.133 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3271, allocations: 0 / 401.1 MB, free: 9.133 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000903/0.328, allocations: 213.6 kB / 401.3 MB, free: 9.109 MB / 318.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 (39): * Single equations (assignments): 37 * 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.001662/0.3297, allocations: 1.365 MB / 402.7 MB, free: 8.055 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001292/0.331, allocations: 0.7209 MB / 403.4 MB, free: 7.625 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.331, allocations: 0 / 403.4 MB, free: 7.625 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006385/0.3317, allocations: 457.8 kB / 403.9 MB, free: 7.297 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001067/0.3327, allocations: 233.4 kB / 404.1 MB, free: 7.18 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01141/0.3442, allocations: 8.396 MB / 412.5 MB, free: 272 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005812/0.3448, allocations: 1.024 MB / 413.5 MB, free: 15.22 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004439/0.3452, allocations: 103.3 kB / 413.6 MB, free: 15.11 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004446/0.3457, allocations: 395.3 kB / 414 MB, free: 14.72 MB / 334.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3457, allocations: 0 / 414 MB, free: 14.72 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05793/0.4036, allocations: 18.91 MB / 432.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002112/0.4039, allocations: 236.7 kB / 433.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.266/2.67, allocations: 4 kB / 433.2 MB, free: 11.91 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches