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: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 107.7 kB / 17.06 MB, free: 5.824 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.001107/0.001107, allocations: 191 kB / 18 MB, free: 4.977 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.326/1.326, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000946/0.000946, allocations: 43.94 kB / 351.3 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2839/0.2849, allocations: 49.43 MB / 400.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.009489/0.2944, allocations: 8.221 MB / 408.9 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004598/0.2991, allocations: 2.695 MB / 411.6 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008149/0.2999, allocations: 23.94 kB / 411.7 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001382/0.3013, allocations: 0.5792 MB / 412.2 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001229/0.3026, allocations: 0.508 MB / 412.8 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000491/0.3031, allocations: 271.6 kB / 413 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001434/0.3045, allocations: 1.505 MB / 414.5 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007678/0.3053, allocations: 0.5769 MB / 415.1 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00068/0.306, allocations: 0.5681 MB / 415.7 MB, free: 9.871 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006344/0.3066, allocations: 0.6144 MB / 416.3 MB, free: 9.254 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001616/0.3068, allocations: 140 kB / 416.4 MB, free: 9.117 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003084/0.3071, allocations: 176 kB / 416.6 MB, free: 8.945 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002/0.3073, allocations: 282.9 kB / 416.9 MB, free: 8.668 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005908/0.3079, allocations: 0.6842 MB / 417.6 MB, free: 7.98 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001624/0.3096, allocations: 1.752 MB / 419.3 MB, free: 6.223 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.3096, allocations: 0 / 419.3 MB, free: 6.223 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3096, allocations: 0 / 419.3 MB, free: 6.223 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.738e-05/0.3096, allocations: 0 / 419.3 MB, free: 6.223 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.002806/0.3124, allocations: 1.479 MB / 420.8 MB, free: 4.695 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.002e-05/0.3125, allocations: 15.89 kB / 420.8 MB, free: 4.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007282/0.3132, allocations: 187.3 kB / 421 MB, free: 4.496 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001214/0.3144, allocations: 0.7658 MB / 421.7 MB, free: 3.688 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.412e-05/0.3145, allocations: 70 kB / 421.8 MB, free: 3.617 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000135/0.3146, allocations: 103.8 kB / 421.9 MB, free: 3.516 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001623/0.3163, allocations: 0.9425 MB / 422.9 MB, free: 2.547 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.057e-05/0.3163, allocations: 3.938 kB / 422.9 MB, free: 2.543 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.985e-05/0.3164, allocations: 43.98 kB / 422.9 MB, free: 2.5 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.91e-05/0.3164, allocations: 28 kB / 422.9 MB, free: 2.473 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001238/0.3177, allocations: 0.6442 MB / 423.6 MB, free: 1.824 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005013/0.3227, allocations: 3.91 MB / 427.5 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007918/0.3235, allocations: 451.8 kB / 427.9 MB, free: 13.22 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006536/0.3242, allocations: 272.7 kB / 428.2 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.587e-05/0.3242, allocations: 8 kB / 428.2 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.186e-05/0.3243, allocations: 42.55 kB / 428.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.375e-06/0.3243, allocations: 0 / 428.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.003132/0.3274, allocations: 1.548 MB / 429.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.093e-05/0.3275, allocations: 85.11 kB / 429.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001112/0.3286, allocations: 0.841 MB / 430.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.679e-05/0.3287, allocations: 29.7 kB / 430.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000399/0.3291, allocations: 0.5681 MB / 431.3 MB, free: 9.688 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001216/0.3292, allocations: 169.6 kB / 431.5 MB, free: 9.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001833/0.3294, allocations: 122.6 kB / 431.6 MB, free: 9.395 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.3295, allocations: 338 kB / 431.9 MB, free: 9.059 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003713/0.3299, allocations: 173.9 kB / 432.1 MB, free: 8.891 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005484/0.3305, allocations: 467.6 kB / 432.6 MB, free: 8.297 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009579/0.3314, allocations: 0.6835 MB / 433.2 MB, free: 7.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/0.3315, allocations: 4 kB / 433.2 MB, free: 7.477 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001382/0.3329, allocations: 0.7905 MB / 434 MB, free: 6.672 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.3329, allocations: 11.98 kB / 434 MB, free: 6.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.412e-05/0.3329, allocations: 8 kB / 434.1 MB, free: 6.652 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002792/0.3332, allocations: 85.94 kB / 434.1 MB, free: 6.562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005274/0.3337, allocations: 155.7 kB / 434.3 MB, free: 6.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002446/0.3362, allocations: 3.146 MB / 437.4 MB, free: 2.984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006084/0.3368, allocations: 39.95 kB / 437.5 MB, free: 2.945 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.734e-05/0.3369, allocations: 39.98 kB / 437.5 MB, free: 2.906 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.0003955/0.3373, allocations: 265.5 kB / 437.8 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00013/0.3374, allocations: 86.97 kB / 437.9 MB, free: 2.551 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001001/0.3384, allocations: 0.4992 MB / 438.4 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.3384, allocations: 7.938 kB / 438.4 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.217e-06/0.3384, allocations: 0 / 438.4 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.3385, allocations: 3.984 kB / 438.4 MB, free: 2.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002193/0.3407, allocations: 1.482 MB / 439.8 MB, free: 464 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.3407, allocations: 0 / 439.8 MB, free: 464 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003404/0.341, allocations: 75.89 kB / 439.9 MB, free: 388 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002134/0.3412, allocations: 77.83 kB / 440 MB, free: 304 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.894e-05/0.3413, allocations: 12 kB / 440 MB, free: 292 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002364/0.3437, allocations: 3.122 MB / 443.1 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.3437, allocations: 4.031 kB / 443.1 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001349/0.345, allocations: 0.7977 MB / 443.9 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002914/0.3453, allocations: 200 kB / 444.1 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000109/0.3454, allocations: 11.94 kB / 444.1 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004582/0.3459, allocations: 31.97 kB / 444.2 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.333e-05/0.346, allocations: 31.97 kB / 444.2 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.794e-05/0.346, allocations: 19.98 kB / 444.2 MB, free: 11.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000754/0.3468, allocations: 0.5693 MB / 444.8 MB, free: 11.17 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3468, allocations: 0 / 444.8 MB, free: 11.17 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009127/0.3477, allocations: 212 kB / 445 MB, free: 10.96 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.000224/0.348, allocations: 131.1 kB / 445.1 MB, free: 10.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00125/0.3492, allocations: 0.7099 MB / 445.8 MB, free: 10.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3492, allocations: 3.938 kB / 445.8 MB, free: 10.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006701/0.3499, allocations: 457.8 kB / 446.3 MB, free: 9.613 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001061/0.351, allocations: 225.5 kB / 446.5 MB, free: 9.391 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002964/0.354, allocations: 1.733 MB / 448.2 MB, free: 7.605 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006489/0.3546, allocations: 1.009 MB / 449.3 MB, free: 6.57 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003916/0.355, allocations: 107.3 kB / 449.4 MB, free: 6.461 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001319/0.3552, allocations: 55.44 kB / 449.4 MB, free: 6.406 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3552, allocations: 0 / 449.4 MB, free: 6.406 MB / 366.1 MB Notification: Performance of Templates: time 0.02183/0.377, allocations: 10.85 MB / 460.3 MB, free: 11.69 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (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 & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins/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