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.001079/0.001079, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001054/0.001054, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.303/1.303, allocations: 227.4 MB / 246.3 MB, free: 9.062 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 60.69 kB / 306.4 MB, free: 0.7383 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08113/0.0823, allocations: 50.55 MB / 356.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.008534/0.09086, allocations: 8.189 MB / 365.1 MB, free: 5.949 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004125/0.09501, allocations: 2.735 MB / 367.8 MB, free: 3.207 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007703/0.0958, allocations: 27.94 kB / 367.9 MB, free: 3.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001397/0.09723, allocations: 0.4902 MB / 368.3 MB, free: 2.688 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001108/0.09835, allocations: 417.1 kB / 368.8 MB, free: 2.277 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005002/0.09887, allocations: 235.8 kB / 369 MB, free: 2.047 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001407/0.1003, allocations: 1.424 MB / 370.4 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006794/0.101, allocations: 0.5007 MB / 370.9 MB, free: 100 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1411/0.242, allocations: 0.5119 MB / 371.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001015/0.2431, allocations: 0.5764 MB / 372 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003687/0.2435, allocations: 86.25 kB / 372.1 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005848/0.2441, allocations: 126.6 kB / 372.2 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002264/0.2443, allocations: 236.3 kB / 372.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009072/0.2452, allocations: 0.62 MB / 373.1 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001699/0.2469, allocations: 1.691 MB / 374.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.247, allocations: 3.469 kB / 374.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.61e-07/0.247, allocations: 2 kB / 374.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.957e-05/0.247, allocations: 0 / 374.8 MB, free: 10.14 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.002412/0.2494, allocations: 1.482 MB / 376.2 MB, free: 9.359 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.2495, allocations: 10.19 kB / 376.2 MB, free: 9.359 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001677/0.2496, allocations: 151.8 kB / 376.4 MB, free: 9.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000714/0.2504, allocations: 199 kB / 376.6 MB, free: 9.254 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009762/0.2513, allocations: 0.7563 MB / 377.3 MB, free: 8.918 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.465e-05/0.2514, allocations: 70.94 kB / 377.4 MB, free: 8.914 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001237/0.2515, allocations: 97.14 kB / 377.5 MB, free: 8.914 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001512/0.253, allocations: 0.9479 MB / 378.5 MB, free: 8.801 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.067e-05/0.2531, allocations: 7.172 kB / 378.5 MB, free: 8.797 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.031e-05/0.2532, allocations: 42 kB / 378.5 MB, free: 8.797 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.251e-05/0.2532, allocations: 24.81 kB / 378.5 MB, free: 8.797 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001221/0.2544, allocations: 0.6507 MB / 379.2 MB, free: 8.785 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004296/0.2587, allocations: 3.95 MB / 383.1 MB, free: 6.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006075/0.2594, allocations: 450.4 kB / 383.6 MB, free: 6.078 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005275/0.2599, allocations: 271.6 kB / 383.8 MB, free: 5.996 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.014e-05/0.2599, allocations: 4.812 kB / 383.8 MB, free: 5.996 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.83e-05/0.26, allocations: 32.88 kB / 383.9 MB, free: 5.957 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.305e-06/0.26, allocations: 4 kB / 383.9 MB, free: 5.953 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002538/0.2625, allocations: 1.536 MB / 385.4 MB, free: 4.969 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.915e-05/0.2626, allocations: 88.3 kB / 385.5 MB, free: 4.871 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009563/0.2635, allocations: 0.8509 MB / 386.3 MB, free: 4.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.651e-05/0.2636, allocations: 35.89 kB / 386.4 MB, free: 4.461 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002633/0.2638, allocations: 0.5659 MB / 386.9 MB, free: 4.012 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.975e-05/0.2639, allocations: 163.7 kB / 387.1 MB, free: 3.887 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001556/0.2641, allocations: 129.1 kB / 387.2 MB, free: 3.816 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.917e-05/0.2641, allocations: 330.9 kB / 387.6 MB, free: 3.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003339/0.2645, allocations: 174.1 kB / 387.7 MB, free: 3.441 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004126/0.2649, allocations: 475.6 kB / 388.2 MB, free: 2.996 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007509/0.2656, allocations: 0.6653 MB / 388.9 MB, free: 2.473 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.2657, allocations: 3.094 kB / 388.9 MB, free: 2.473 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001211/0.2669, allocations: 0.794 MB / 389.7 MB, free: 2.172 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2e-05/0.2669, allocations: 9.438 kB / 389.7 MB, free: 2.172 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/0.2669, allocations: 10.28 kB / 389.7 MB, free: 2.172 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002368/0.2672, allocations: 86.22 kB / 389.8 MB, free: 2.141 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004721/0.2677, allocations: 162.4 kB / 389.9 MB, free: 2.133 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001693/0.2694, allocations: 2.87 MB / 392.8 MB, free: 15.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000552/0.2699, allocations: 38.42 kB / 392.8 MB, free: 15.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.026e-05/0.27, allocations: 47.67 kB / 392.9 MB, free: 15.31 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.00037/0.2704, allocations: 264.1 kB / 393.1 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001328/0.2705, allocations: 91.91 kB / 393.2 MB, free: 15.06 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009496/0.2715, allocations: 0.5001 MB / 393.7 MB, free: 14.82 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.2715, allocations: 4.188 kB / 393.7 MB, free: 14.82 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.2715, allocations: 6.156 kB / 393.7 MB, free: 14.82 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.2715, allocations: 4 kB / 393.7 MB, free: 14.82 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002122/0.2736, allocations: 1.475 MB / 395.2 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.2736, allocations: 2.062 kB / 395.2 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003237/0.274, allocations: 71.86 kB / 395.3 MB, free: 14.01 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002007/0.2742, allocations: 82.36 kB / 395.4 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.812e-05/0.2742, allocations: 10 kB / 395.4 MB, free: 13.95 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002036/0.2763, allocations: 2.856 MB / 398.2 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.2763, allocations: 2.25 kB / 398.2 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001274/0.2776, allocations: 0.8047 MB / 399 MB, free: 10.55 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000261/0.2778, allocations: 202.1 kB / 399.2 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001082/0.278, allocations: 12.06 kB / 399.2 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004523/0.2784, allocations: 36.41 kB / 399.3 MB, free: 10.34 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.732e-05/0.2785, allocations: 35.08 kB / 399.3 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.624e-05/0.2785, allocations: 13.62 kB / 399.3 MB, free: 10.31 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007369/0.2793, allocations: 0.5777 MB / 399.9 MB, free: 9.988 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2793, allocations: 0 / 399.9 MB, free: 9.988 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008533/0.2801, allocations: 208.6 kB / 400.1 MB, free: 9.969 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.001637/0.2818, allocations: 1.367 MB / 401.5 MB, free: 8.91 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001169/0.283, allocations: 0.699 MB / 402.2 MB, free: 8.496 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.283, allocations: 1.344 kB / 402.2 MB, free: 8.496 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006229/0.2836, allocations: 460.9 kB / 402.6 MB, free: 8.164 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001142/0.2848, allocations: 208.4 kB / 402.8 MB, free: 8.062 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0112/0.296, allocations: 8.397 MB / 411.2 MB, free: 1.473 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000532/0.2965, allocations: 1.016 MB / 412.2 MB, free: 440 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004518/0.297, allocations: 107.3 kB / 412.3 MB, free: 328 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004551/0.2975, allocations: 390 kB / 412.7 MB, free: 15.94 MB / 334.1 MB Notification: Performance of SimCode: time 7.11e-07/0.2975, allocations: 0 / 412.7 MB, free: 15.94 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06153/0.359, allocations: 18.44 MB / 431.2 MB, free: 13.81 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002057/0.3592, allocations: 245.6 kB / 431.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.055/2.414, allocations: 0 / 431.4 MB, free: 13.55 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