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.001319/0.001319, allocations: 110.1 kB / 17.06 MB, free: 5.793 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.00135/0.00135, allocations: 200 kB / 18.01 MB, free: 4.918 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.406/1.406, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 51.91 kB / 350.8 MB, free: 3.715 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2991/0.3005, allocations: 49.43 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.009864/0.3104, allocations: 8.076 MB / 408.3 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005017/0.3155, allocations: 2.64 MB / 411 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001286/0.3168, allocations: 23.94 kB / 411 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002426/0.3193, allocations: 0.5481 MB / 411.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002348/0.3217, allocations: 468.3 kB / 412 MB, free: 13 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009483/0.3227, allocations: 243.7 kB / 412.2 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002509/0.3252, allocations: 1.482 MB / 413.7 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009365/0.3262, allocations: 0.5846 MB / 414.3 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009523/0.3271, allocations: 0.5408 MB / 414.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007806/0.3279, allocations: 0.5911 MB / 415.4 MB, free: 9.531 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001993/0.3281, allocations: 140 kB / 415.6 MB, free: 9.395 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003972/0.3285, allocations: 187.9 kB / 415.7 MB, free: 9.211 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002468/0.3288, allocations: 271 kB / 416 MB, free: 8.945 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007693/0.3296, allocations: 0.6648 MB / 416.7 MB, free: 8.277 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002203/0.3318, allocations: 1.728 MB / 418.4 MB, free: 6.543 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.3318, allocations: 0 / 418.4 MB, free: 6.543 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.3318, allocations: 4 kB / 418.4 MB, free: 6.539 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.64e-05/0.3318, allocations: 4 kB / 418.4 MB, free: 6.535 MB / 334.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.002753/0.3346, allocations: 1.486 MB / 419.9 MB, free: 4.996 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.3347, allocations: 11.97 kB / 419.9 MB, free: 4.984 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001995/0.3349, allocations: 148.4 kB / 420.1 MB, free: 4.832 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007039/0.3356, allocations: 196 kB / 420.2 MB, free: 4.641 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001316/0.3369, allocations: 0.7422 MB / 421 MB, free: 3.855 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.25e-05/0.337, allocations: 70 kB / 421.1 MB, free: 3.789 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001515/0.3371, allocations: 100 kB / 421.2 MB, free: 3.691 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001611/0.3388, allocations: 0.9385 MB / 422.1 MB, free: 2.723 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.595e-05/0.3388, allocations: 7.953 kB / 422.1 MB, free: 2.715 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.953e-05/0.3389, allocations: 40 kB / 422.1 MB, free: 2.676 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.403e-05/0.3389, allocations: 24 kB / 422.2 MB, free: 2.652 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001319/0.3402, allocations: 0.6364 MB / 422.8 MB, free: 2.016 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005563/0.3458, allocations: 3.9 MB / 426.7 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008341/0.3467, allocations: 446.1 kB / 427.1 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000611/0.3473, allocations: 269.3 kB / 427.4 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.576e-05/0.3474, allocations: 4.328 kB / 427.4 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.448e-05/0.3474, allocations: 34.89 kB / 427.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 5.47e-06/0.3474, allocations: 0 / 427.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002881/0.3503, allocations: 1.411 MB / 428.9 MB, free: 11.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.573e-05/0.3504, allocations: 89.05 kB / 428.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001169/0.3516, allocations: 0.8331 MB / 429.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.576e-05/0.3516, allocations: 33.7 kB / 429.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004644/0.3521, allocations: 0.5696 MB / 430.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001299/0.3522, allocations: 166.6 kB / 430.5 MB, free: 9.902 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001968/0.3524, allocations: 126.6 kB / 430.7 MB, free: 9.773 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.3526, allocations: 334 kB / 431 MB, free: 9.441 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003517/0.3529, allocations: 165.9 kB / 431.1 MB, free: 9.281 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005874/0.3535, allocations: 467.9 kB / 431.6 MB, free: 8.688 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009744/0.3545, allocations: 0.6546 MB / 432.3 MB, free: 7.898 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.131e-06/0.3545, allocations: 4 kB / 432.3 MB, free: 7.895 MB / 350.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001422/0.356, allocations: 0.7788 MB / 433 MB, free: 7.105 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.461e-05/0.356, allocations: 12 kB / 433.1 MB, free: 7.094 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.31e-05/0.356, allocations: 8 kB / 433.1 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002806/0.3563, allocations: 77.62 kB / 433.1 MB, free: 7.004 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005079/0.3568, allocations: 163.9 kB / 433.3 MB, free: 6.844 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002918/0.3598, allocations: 3.138 MB / 436.4 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006234/0.3604, allocations: 35.94 kB / 436.5 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.542e-05/0.3604, allocations: 32 kB / 436.5 MB, free: 3.359 MB / 350.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.0005087/0.361, allocations: 266.1 kB / 436.8 MB, free: 3.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001401/0.3611, allocations: 87.44 kB / 436.8 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009917/0.3621, allocations: 499.1 kB / 437.3 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.3621, allocations: 4 kB / 437.3 MB, free: 2.496 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.3621, allocations: 4 kB / 437.3 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.3621, allocations: 0 / 437.3 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002278/0.3644, allocations: 1.451 MB / 438.8 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.3644, allocations: 4 kB / 438.8 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002977/0.3648, allocations: 67.91 kB / 438.9 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002159/0.365, allocations: 73.89 kB / 438.9 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.838e-05/0.365, allocations: 12 kB / 438.9 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002779/0.3678, allocations: 3.119 MB / 442.1 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.3678, allocations: 8.062 kB / 442.1 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0013/0.3691, allocations: 0.7706 MB / 442.8 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000309/0.3694, allocations: 216.4 kB / 443.1 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.258e-05/0.3695, allocations: 11.94 kB / 443.1 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004036/0.37, allocations: 23.98 kB / 443.1 MB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.265e-05/0.3701, allocations: 39.89 kB / 443.1 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.786e-05/0.3701, allocations: 19.94 kB / 443.2 MB, free: 12.25 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008155/0.3709, allocations: 0.5615 MB / 443.7 MB, free: 11.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3709, allocations: 0 / 443.7 MB, free: 11.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008625/0.3718, allocations: 208 kB / 443.9 MB, free: 11.49 MB / 366.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.001754/0.3736, allocations: 1.33 MB / 445.2 MB, free: 10.11 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001306/0.3749, allocations: 0.6985 MB / 445.9 MB, free: 9.387 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.3749, allocations: 0 / 445.9 MB, free: 9.387 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007166/0.3756, allocations: 437.8 kB / 446.4 MB, free: 8.934 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001102/0.3767, allocations: 234.1 kB / 446.6 MB, free: 8.707 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01123/0.388, allocations: 7.311 MB / 453.9 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007322/0.3887, allocations: 1.009 MB / 454.9 MB, free: 15.91 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004159/0.3892, allocations: 103.2 kB / 455 MB, free: 15.81 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004777/0.3896, allocations: 375.3 kB / 455.4 MB, free: 15.44 MB / 382.1 MB Notification: Performance of SimCode: time 8.91e-07/0.3897, allocations: 0 / 455.4 MB, free: 15.44 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3199/0.7096, allocations: 19.08 MB / 474.5 MB, free: 12.65 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/12.35, allocations: 7.875 kB / 474.5 MB, free: 12.64 MB / 398.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