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.0009243/0.0009243, allocations: 92.06 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.001103/0.001103, allocations: 181.1 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.305/1.305, allocations: 223.3 MB / 241.6 MB, free: 108 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002508/0.0002509, allocations: 4 kB / 301.5 MB, free: 6.016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08946/0.08973, allocations: 50.42 MB / 352 MB, free: 3.582 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.007985/0.09776, allocations: 7.688 MB / 359.6 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004746/0.1025, allocations: 2.646 MB / 362.3 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001073/0.1037, allocations: 27.88 kB / 362.3 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001697/0.1054, allocations: 494 kB / 362.8 MB, free: 8.684 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001565/0.107, allocations: 413.1 kB / 363.2 MB, free: 8.277 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006672/0.1076, allocations: 235.8 kB / 363.4 MB, free: 8.047 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001793/0.1094, allocations: 1.428 MB / 364.9 MB, free: 6.613 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008086/0.1103, allocations: 0.4929 MB / 365.4 MB, free: 6.098 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007295/0.111, allocations: 477.7 kB / 365.8 MB, free: 5.629 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007748/0.1118, allocations: 0.5324 MB / 366.4 MB, free: 5.094 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001686/0.112, allocations: 72 kB / 366.4 MB, free: 5.023 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003346/0.1123, allocations: 99.98 kB / 366.5 MB, free: 4.926 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001482/0.1125, allocations: 199 kB / 366.7 MB, free: 4.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005356/0.113, allocations: 0.6195 MB / 367.3 MB, free: 4.102 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001261/0.1143, allocations: 1.642 MB / 369 MB, free: 2.453 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1143, allocations: 0 / 369 MB, free: 2.453 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1143, allocations: 0 / 369 MB, free: 2.453 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.135e-05/0.1143, allocations: 0 / 369 MB, free: 2.453 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.00194/0.1163, allocations: 1.274 MB / 370.3 MB, free: 1.125 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.1163, allocations: 16.02 kB / 370.3 MB, free: 1.109 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001567/0.1165, allocations: 148.4 kB / 370.4 MB, free: 0.957 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006451/0.1171, allocations: 195.3 kB / 370.6 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1541/0.2713, allocations: 0.7461 MB / 371.4 MB, free: 24.04 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001196/0.2714, allocations: 72.94 kB / 371.4 MB, free: 24.04 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002742/0.2717, allocations: 98.17 kB / 371.5 MB, free: 24.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001892/0.2736, allocations: 0.9509 MB / 372.5 MB, free: 23.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.562e-05/0.2737, allocations: 6.781 kB / 372.5 MB, free: 23.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.775e-05/0.2737, allocations: 39.62 kB / 372.5 MB, free: 23.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.13e-05/0.2738, allocations: 25.56 kB / 372.5 MB, free: 23.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001465/0.2752, allocations: 0.6607 MB / 373.2 MB, free: 23.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00496/0.2802, allocations: 3.981 MB / 377.2 MB, free: 21.54 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006818/0.2809, allocations: 448.2 kB / 377.6 MB, free: 21.28 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005768/0.2815, allocations: 275.4 kB / 377.9 MB, free: 21.2 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.527e-05/0.2816, allocations: 5.062 kB / 377.9 MB, free: 21.2 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.188e-05/0.2816, allocations: 41.95 kB / 377.9 MB, free: 21.15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.004e-06/0.2816, allocations: 0 / 377.9 MB, free: 21.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002815/0.2844, allocations: 1.581 MB / 379.5 MB, free: 20.15 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.518e-05/0.2845, allocations: 86.83 kB / 379.6 MB, free: 20.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001129/0.2856, allocations: 0.8343 MB / 380.4 MB, free: 19.69 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.784e-05/0.2856, allocations: 36.39 kB / 380.5 MB, free: 19.65 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003163/0.286, allocations: 0.5669 MB / 381 MB, free: 19.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.485e-05/0.2861, allocations: 162.6 kB / 381.2 MB, free: 19.08 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.375e-05/0.2861, allocations: 59.09 kB / 381.3 MB, free: 19.04 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.166e-05/0.2862, allocations: 333.7 kB / 381.6 MB, free: 18.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003681/0.2866, allocations: 183.9 kB / 381.8 MB, free: 18.66 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004615/0.2871, allocations: 480.6 kB / 382.2 MB, free: 18.22 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008202/0.2879, allocations: 0.6988 MB / 382.9 MB, free: 17.64 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.2879, allocations: 3.594 kB / 382.9 MB, free: 17.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001331/0.2892, allocations: 0.801 MB / 383.7 MB, free: 17.29 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.217e-05/0.2893, allocations: 9.125 kB / 383.7 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.587e-05/0.2893, allocations: 9.406 kB / 383.7 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002512/0.2895, allocations: 80.77 kB / 383.8 MB, free: 17.26 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005174/0.2901, allocations: 170 kB / 384 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001847/0.2919, allocations: 2.878 MB / 386.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005905/0.2925, allocations: 41.88 kB / 386.9 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.428e-05/0.2926, allocations: 36.45 kB / 386.9 MB, free: 14.39 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 (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.000399/0.293, allocations: 265.4 kB / 387.2 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001233/0.2931, allocations: 86.28 kB / 387.3 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001044/0.2942, allocations: 0.5177 MB / 387.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/0.2942, allocations: 4 kB / 387.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.2942, allocations: 2.688 kB / 387.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.2942, allocations: 2.766 kB / 387.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002157/0.2964, allocations: 1.488 MB / 389.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/0.2964, allocations: 6.531 kB / 389.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003402/0.2967, allocations: 81.11 kB / 389.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001845/0.2969, allocations: 67.75 kB / 389.5 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.819e-05/0.297, allocations: 13.75 kB / 389.5 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001612/0.2986, allocations: 2.855 MB / 392.3 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.2986, allocations: 2.25 kB / 392.3 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001232/0.2999, allocations: 0.8207 MB / 393.1 MB, free: 9.723 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002229/0.3001, allocations: 205.1 kB / 393.3 MB, free: 9.547 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.254e-05/0.3002, allocations: 17.47 kB / 393.4 MB, free: 9.535 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004425/0.3006, allocations: 37.59 kB / 393.4 MB, free: 9.523 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.422e-05/0.3007, allocations: 35.83 kB / 393.4 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.45e-05/0.3008, allocations: 10.62 kB / 393.4 MB, free: 9.516 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007198/0.3015, allocations: 0.5788 MB / 394 MB, free: 9.266 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3015, allocations: 3.938 kB / 394 MB, free: 9.262 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008479/0.3023, allocations: 207.8 kB / 394.2 MB, free: 9.246 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 (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.001412/0.3038, allocations: 1.392 MB / 395.6 MB, free: 8.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001117/0.3049, allocations: 0.7196 MB / 396.3 MB, free: 7.832 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.3049, allocations: 0 / 396.3 MB, free: 7.832 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005377/0.3055, allocations: 467 kB / 396.8 MB, free: 7.492 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00122/0.3067, allocations: 213.6 kB / 397 MB, free: 7.387 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009671/0.3164, allocations: 8.516 MB / 405.5 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004811/0.3169, allocations: 1.009 MB / 406.5 MB, free: 15.57 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004392/0.3173, allocations: 111.3 kB / 406.6 MB, free: 15.46 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004313/0.3178, allocations: 387.3 kB / 407 MB, free: 15.08 MB / 318.1 MB Notification: Performance of SimCode: time 4.7e-07/0.3178, allocations: 0 / 407 MB, free: 15.08 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2/0.5177, allocations: 18.17 MB / 425.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002634/0.5181, allocations: 253.5 kB / 425.4 MB, free: 12.98 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.238/2.756, allocations: 0 / 425.4 MB, free: 12.98 MB / 334.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