Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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_SinglePhase,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 109.7 kB / 17.07 MB, free: 5.996 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.00139/0.00139, allocations: 197.3 kB / 18 MB, free: 5.074 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.423/1.423, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001582/0.001582, allocations: 51.92 kB / 350.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2551/0.2567, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01048/0.2673, allocations: 8.223 MB / 408.5 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005902/0.2732, allocations: 2.695 MB / 411.2 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001171/0.2744, allocations: 23.94 kB / 411.2 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001691/0.2762, allocations: 0.5519 MB / 411.7 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001294/0.2775, allocations: 484.2 kB / 412.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005704/0.2781, allocations: 263.6 kB / 412.5 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001622/0.2797, allocations: 1.498 MB / 414 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000793/0.2805, allocations: 0.5847 MB / 414.6 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007045/0.2813, allocations: 0.568 MB / 415.1 MB, free: 9.848 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007258/0.282, allocations: 0.6105 MB / 415.7 MB, free: 9.234 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001899/0.2822, allocations: 140 kB / 415.9 MB, free: 9.098 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003555/0.2826, allocations: 180 kB / 416 MB, free: 8.922 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002485/0.2828, allocations: 282.9 kB / 416.3 MB, free: 8.645 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006617/0.2835, allocations: 0.6765 MB / 417 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001943/0.2854, allocations: 1.759 MB / 418.8 MB, free: 6.199 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.2854, allocations: 0 / 418.8 MB, free: 6.199 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2855, allocations: 0 / 418.8 MB, free: 6.199 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.637e-05/0.2855, allocations: 0 / 418.8 MB, free: 6.199 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002494/0.288, allocations: 1.518 MB / 420.3 MB, free: 4.629 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.288, allocations: 8.031 kB / 420.3 MB, free: 4.621 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001787/0.2882, allocations: 152.4 kB / 420.4 MB, free: 4.465 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006485/0.2889, allocations: 200 kB / 420.6 MB, free: 4.27 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001184/0.2901, allocations: 0.7663 MB / 421.4 MB, free: 3.461 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.058e-05/0.2901, allocations: 74 kB / 421.5 MB, free: 3.387 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001286/0.2903, allocations: 96 kB / 421.6 MB, free: 3.293 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001648/0.2919, allocations: 0.9503 MB / 422.5 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.317e-05/0.292, allocations: 3.953 kB / 422.5 MB, free: 2.312 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.305e-05/0.2921, allocations: 40 kB / 422.6 MB, free: 2.273 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.24e-05/0.2921, allocations: 28 kB / 422.6 MB, free: 2.246 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001306/0.2934, allocations: 0.6481 MB / 423.2 MB, free: 1.594 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005254/0.2987, allocations: 3.927 MB / 427.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007534/0.2994, allocations: 443.9 kB / 427.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006205/0.3001, allocations: 272.7 kB / 427.9 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.516e-05/0.3001, allocations: 11.98 kB / 427.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.013e-05/0.3002, allocations: 34.56 kB / 427.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.344e-06/0.3002, allocations: 0 / 427.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.003125/0.3033, allocations: 1.57 MB / 429.5 MB, free: 11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.708e-05/0.3034, allocations: 89.09 kB / 429.6 MB, free: 10.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00117/0.3046, allocations: 0.8372 MB / 430.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.575e-05/0.3046, allocations: 29.7 kB / 430.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004684/0.3051, allocations: 0.5852 MB / 431 MB, free: 9.418 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001437/0.3052, allocations: 174.6 kB / 431.2 MB, free: 9.246 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001962/0.3054, allocations: 130.6 kB / 431.3 MB, free: 9.113 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.3056, allocations: 334 kB / 431.6 MB, free: 8.781 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003804/0.306, allocations: 169.9 kB / 431.8 MB, free: 8.617 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006203/0.3066, allocations: 475.6 kB / 432.3 MB, free: 8.016 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001061/0.3077, allocations: 0.6797 MB / 432.9 MB, free: 7.203 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.3077, allocations: 4 kB / 432.9 MB, free: 7.199 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001474/0.3092, allocations: 0.7913 MB / 433.7 MB, free: 6.395 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.3092, allocations: 15.97 kB / 433.8 MB, free: 6.379 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.314e-05/0.3092, allocations: 8 kB / 433.8 MB, free: 6.371 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002894/0.3095, allocations: 85.62 kB / 433.8 MB, free: 6.281 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005099/0.3101, allocations: 151.7 kB / 434 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002798/0.3129, allocations: 3.158 MB / 437.2 MB, free: 2.695 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000584/0.3135, allocations: 35.94 kB / 437.2 MB, free: 2.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.666e-05/0.3135, allocations: 32 kB / 437.2 MB, free: 2.629 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 (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.0004474/0.314, allocations: 270.8 kB / 437.5 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001367/0.3141, allocations: 91.44 kB / 437.6 MB, free: 2.266 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001038/0.3152, allocations: 0.503 MB / 438.1 MB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.3152, allocations: 8 kB / 438.1 MB, free: 1.734 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.3152, allocations: 0 / 438.1 MB, free: 1.734 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.3152, allocations: 0 / 438.1 MB, free: 1.734 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002289/0.3175, allocations: 1.478 MB / 439.6 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.3175, allocations: 0 / 439.6 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003285/0.3179, allocations: 75.89 kB / 439.6 MB, free: 100 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002095/0.3181, allocations: 73.89 kB / 439.7 MB, free: 20 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.944e-05/0.3181, allocations: 12 kB / 439.7 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002716/0.3208, allocations: 3.13 MB / 442.8 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.3209, allocations: 8.062 kB / 442.9 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00143/0.3223, allocations: 0.7942 MB / 443.6 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003426/0.3227, allocations: 208.5 kB / 443.9 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.95e-05/0.3228, allocations: 19.94 kB / 443.9 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004338/0.3232, allocations: 27.97 kB / 443.9 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.108e-05/0.3233, allocations: 35.89 kB / 443.9 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.798e-05/0.3233, allocations: 19.94 kB / 444 MB, free: 11.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008439/0.3242, allocations: 0.5693 MB / 444.5 MB, free: 10.87 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3242, allocations: 4 kB / 444.5 MB, free: 10.86 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000869/0.3251, allocations: 208 kB / 444.7 MB, free: 10.66 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 (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.001865/0.3269, allocations: 1.374 MB / 446.1 MB, free: 9.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001373/0.3283, allocations: 0.7056 MB / 446.8 MB, free: 8.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.774e-06/0.3284, allocations: 4.188 kB / 446.8 MB, free: 8.496 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007343/0.3291, allocations: 457 kB / 447.3 MB, free: 8.023 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001082/0.3302, allocations: 222.1 kB / 447.5 MB, free: 7.805 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01148/0.3417, allocations: 7.481 MB / 455 MB, free: 15.87 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007644/0.3425, allocations: 1.009 MB / 456 MB, free: 14.84 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000508/0.343, allocations: 111.3 kB / 456.1 MB, free: 14.72 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005166/0.3435, allocations: 391.2 kB / 456.5 MB, free: 14.34 MB / 382.1 MB Notification: Performance of SimCode: time 9.51e-07/0.3435, allocations: 0 / 456.5 MB, free: 14.34 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4419/0.7854, allocations: 19.43 MB / 475.9 MB, free: 11.23 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.22/13, allocations: 10.66 kB / 475.9 MB, free: 11.23 MB / 398.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches