Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_3_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.001258/0.001258, allocations: 106.5 kB / 17.73 MB, free: 5.367 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.001396/0.001397, allocations: 187 kB / 18.66 MB, free: 4.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.319/1.319, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 47.94 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08401/0.08528, allocations: 46.61 MB / 374.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.1766/0.2619, allocations: 8.182 MB / 382.8 MB, free: 9.012 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004807/0.2668, allocations: 2.736 MB / 385.6 MB, free: 7.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00125/0.2681, allocations: 24.66 kB / 385.6 MB, free: 7.656 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00152/0.2697, allocations: 0.5604 MB / 386.1 MB, free: 7.395 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0015/0.2712, allocations: 480.2 kB / 386.6 MB, free: 7.105 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006399/0.2718, allocations: 255.4 kB / 386.9 MB, free: 7.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001464/0.2733, allocations: 1.508 MB / 388.4 MB, free: 6.207 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007304/0.2741, allocations: 0.5871 MB / 389 MB, free: 5.934 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007952/0.2749, allocations: 0.5674 MB / 389.5 MB, free: 5.637 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000696/0.2756, allocations: 0.609 MB / 390.1 MB, free: 5.309 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001807/0.2758, allocations: 140.3 kB / 390.3 MB, free: 5.309 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003839/0.2762, allocations: 177.4 kB / 390.4 MB, free: 5.301 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001744/0.2763, allocations: 288 kB / 390.7 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000541/0.2769, allocations: 0.6709 MB / 391.4 MB, free: 4.664 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00184/0.2787, allocations: 1.758 MB / 393.2 MB, free: 3.988 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.2787, allocations: 1.375 kB / 393.2 MB, free: 3.988 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2788, allocations: 0 / 393.2 MB, free: 3.988 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.516e-05/0.2788, allocations: 0 / 393.2 MB, free: 3.988 MB / 318.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.002331/0.2811, allocations: 1.474 MB / 394.6 MB, free: 3 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.2812, allocations: 10.56 kB / 394.6 MB, free: 3 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001511/0.2813, allocations: 151.5 kB / 394.8 MB, free: 2.898 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006137/0.2819, allocations: 193.5 kB / 395 MB, free: 2.828 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001147/0.2831, allocations: 0.7659 MB / 395.7 MB, free: 2.289 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.003e-05/0.2832, allocations: 73.12 kB / 395.8 MB, free: 2.254 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001214/0.2833, allocations: 96.44 kB / 395.9 MB, free: 2.223 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001493/0.2848, allocations: 0.9413 MB / 396.8 MB, free: 1.793 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.765e-05/0.2848, allocations: 10.81 kB / 396.9 MB, free: 1.785 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.238e-05/0.2849, allocations: 41.22 kB / 396.9 MB, free: 1.754 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.568e-05/0.285, allocations: 25.55 kB / 396.9 MB, free: 1.754 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001195/0.2862, allocations: 0.6462 MB / 397.6 MB, free: 1.516 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004727/0.2909, allocations: 3.913 MB / 401.5 MB, free: 14.87 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000745/0.2917, allocations: 440.6 kB / 401.9 MB, free: 14.61 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006247/0.2923, allocations: 287.9 kB / 402.2 MB, free: 14.51 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.467e-05/0.2923, allocations: 4.125 kB / 402.2 MB, free: 14.51 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/0.2924, allocations: 41.88 kB / 402.2 MB, free: 14.46 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 2.716e-06/0.2924, allocations: 0 / 402.2 MB, free: 14.46 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.003105/0.2955, allocations: 1.546 MB / 403.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.062e-05/0.2956, allocations: 85.23 kB / 403.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001101/0.2967, allocations: 0.8385 MB / 404.7 MB, free: 12.82 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.42e-05/0.2967, allocations: 32.98 kB / 404.7 MB, free: 12.79 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003979/0.2971, allocations: 0.5685 MB / 405.3 MB, free: 12.27 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001134/0.2973, allocations: 158.2 kB / 405.5 MB, free: 12.14 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001916/0.2975, allocations: 133.2 kB / 405.6 MB, free: 12.05 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.2976, allocations: 332 kB / 405.9 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003949/0.298, allocations: 180.1 kB / 406.1 MB, free: 11.64 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006023/0.2986, allocations: 475.3 kB / 406.6 MB, free: 11.15 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00101/0.2996, allocations: 0.6796 MB / 407.2 MB, free: 10.55 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.2996, allocations: 3.844 kB / 407.2 MB, free: 10.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001355/0.301, allocations: 0.7914 MB / 408 MB, free: 10.13 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.316e-05/0.301, allocations: 9.219 kB / 408 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.809e-05/0.3011, allocations: 13.2 kB / 408.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000272/0.3013, allocations: 87.62 kB / 408.1 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005035/0.3019, allocations: 159.3 kB / 408.3 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002468/0.3043, allocations: 3.138 MB / 411.4 MB, free: 6.871 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005623/0.3049, allocations: 35.02 kB / 411.5 MB, free: 6.855 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.967e-05/0.305, allocations: 35.75 kB / 411.5 MB, free: 6.848 MB / 334.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.0003785/0.3054, allocations: 269.3 kB / 411.8 MB, free: 6.629 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001311/0.3055, allocations: 94.16 kB / 411.9 MB, free: 6.578 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009563/0.3065, allocations: 0.4975 MB / 412.4 MB, free: 6.273 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.638e-06/0.3065, allocations: 5.156 kB / 412.4 MB, free: 6.273 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.3065, allocations: 1.312 kB / 412.4 MB, free: 6.273 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.3065, allocations: 5.703 kB / 412.4 MB, free: 6.27 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002138/0.3086, allocations: 1.469 MB / 413.8 MB, free: 5.164 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.3087, allocations: 6.375 kB / 413.8 MB, free: 5.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003109/0.309, allocations: 72.39 kB / 413.9 MB, free: 5.145 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001877/0.3092, allocations: 75.81 kB / 414 MB, free: 5.098 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.254e-05/0.3092, allocations: 12.7 kB / 414 MB, free: 5.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00218/0.3114, allocations: 3.127 MB / 417.1 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.3114, allocations: 1.219 kB / 417.1 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00124/0.3127, allocations: 0.7992 MB / 417.9 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002634/0.3129, allocations: 206 kB / 418.1 MB, free: 1.203 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.556e-05/0.313, allocations: 16.47 kB / 418.1 MB, free: 1.191 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004074/0.3135, allocations: 32.16 kB / 418.2 MB, free: 1.176 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.317e-05/0.3135, allocations: 32.88 kB / 418.2 MB, free: 1.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.476e-05/0.3136, allocations: 16.33 kB / 418.2 MB, free: 1.152 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006667/0.3142, allocations: 0.5707 MB / 418.8 MB, free: 0.832 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3143, allocations: 0 / 418.8 MB, free: 0.832 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008012/0.3151, allocations: 209.5 kB / 419 MB, free: 0.8125 MB / 334.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.001573/0.3166, allocations: 1.377 MB / 420.4 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001165/0.3178, allocations: 0.7108 MB / 421.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.3178, allocations: 1.688 kB / 421.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006469/0.3185, allocations: 453.7 kB / 421.5 MB, free: 14.94 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001021/0.3195, allocations: 231.5 kB / 421.8 MB, free: 14.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009789/0.3293, allocations: 7.441 MB / 429.2 MB, free: 7.43 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005777/0.3299, allocations: 1.013 MB / 430.2 MB, free: 6.387 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003956/0.3303, allocations: 103.3 kB / 430.3 MB, free: 6.281 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004361/0.3308, allocations: 387.3 kB / 430.7 MB, free: 5.902 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3308, allocations: 0 / 430.7 MB, free: 5.902 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04757/0.3784, allocations: 19.72 MB / 450.4 MB, free: 2.105 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.31, allocations: 5.375 kB / 450.4 MB, free: 2.102 MB / 366.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches