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: 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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009841/0.0009842, allocations: 93.67 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001208/0.001208, allocations: 202.2 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.311/1.311, allocations: 227.7 MB / 247.5 MB, free: 9.316 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002249/0.0002249, allocations: 7.984 kB / 308.4 MB, free: 0.5508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08909/0.08934, allocations: 51.52 MB / 359.9 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.007606/0.09698, allocations: 7.714 MB / 367.6 MB, free: 5.273 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004308/0.1013, allocations: 2.696 MB / 370.3 MB, free: 2.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008764/0.1022, allocations: 23.94 kB / 370.4 MB, free: 2.547 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00153/0.1038, allocations: 0.498 MB / 370.8 MB, free: 2.047 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001378/0.1052, allocations: 417 kB / 371.3 MB, free: 1.637 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005957/0.1058, allocations: 239.8 kB / 371.5 MB, free: 1.402 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1579/0.2637, allocations: 1.421 MB / 372.9 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001197/0.265, allocations: 499.3 kB / 373.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001076/0.2661, allocations: 484.7 kB / 373.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001096/0.2672, allocations: 0.5323 MB / 374.4 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003189/0.2675, allocations: 70.41 kB / 374.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005707/0.2681, allocations: 110.5 kB / 374.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002514/0.2683, allocations: 206.1 kB / 374.8 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009603/0.2693, allocations: 0.611 MB / 375.4 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001833/0.2712, allocations: 1.378 MB / 376.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.2712, allocations: 0.75 kB / 376.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2712, allocations: 0 / 376.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.208e-05/0.2712, allocations: 0 / 376.8 MB, free: 10.18 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.002777/0.274, allocations: 1.28 MB / 378.1 MB, free: 9.418 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.2741, allocations: 13.56 kB / 378.1 MB, free: 9.414 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009127/0.275, allocations: 205.7 kB / 378.3 MB, free: 9.344 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001345/0.2764, allocations: 0.7539 MB / 379 MB, free: 9.008 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.763e-05/0.2764, allocations: 70.62 kB / 379.1 MB, free: 9.008 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001361/0.2766, allocations: 101.9 kB / 379.2 MB, free: 9.008 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001767/0.2783, allocations: 0.951 MB / 380.1 MB, free: 8.887 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.028e-05/0.2784, allocations: 5.797 kB / 380.1 MB, free: 8.883 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.699e-05/0.2785, allocations: 46.52 kB / 380.2 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.16e-05/0.2785, allocations: 23.97 kB / 380.2 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001373/0.2799, allocations: 0.6619 MB / 380.9 MB, free: 8.871 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00507/0.285, allocations: 3.971 MB / 384.8 MB, free: 6.633 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006423/0.2856, allocations: 466.2 kB / 385.3 MB, free: 6.363 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005692/0.2862, allocations: 275.9 kB / 385.6 MB, free: 6.281 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.542e-05/0.2862, allocations: 4.656 kB / 385.6 MB, free: 6.281 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.025e-05/0.2863, allocations: 36.84 kB / 385.6 MB, free: 6.238 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 3.236e-06/0.2863, allocations: 0 / 385.6 MB, free: 6.238 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.003221/0.2895, allocations: 1.575 MB / 387.2 MB, free: 5.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.871e-05/0.2896, allocations: 95.62 kB / 387.3 MB, free: 5.148 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001116/0.2907, allocations: 0.8414 MB / 388.1 MB, free: 4.781 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.276e-05/0.2907, allocations: 39.92 kB / 388.2 MB, free: 4.738 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002815/0.291, allocations: 0.5672 MB / 388.7 MB, free: 4.289 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.666e-05/0.2911, allocations: 158.3 kB / 388.9 MB, free: 4.168 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.671e-05/0.2912, allocations: 64.44 kB / 388.9 MB, free: 4.129 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.495e-05/0.2912, allocations: 333.4 kB / 389.3 MB, free: 3.812 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003386/0.2916, allocations: 177.5 kB / 389.4 MB, free: 3.754 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004438/0.292, allocations: 485.4 kB / 389.9 MB, free: 3.305 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008361/0.2929, allocations: 0.6857 MB / 390.6 MB, free: 2.777 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.2929, allocations: 2.219 kB / 390.6 MB, free: 2.777 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001311/0.2942, allocations: 0.8049 MB / 391.4 MB, free: 2.477 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.2943, allocations: 8.688 kB / 391.4 MB, free: 2.477 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.438e-05/0.2943, allocations: 9.875 kB / 391.4 MB, free: 2.477 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002472/0.2945, allocations: 88.02 kB / 391.5 MB, free: 2.441 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004869/0.295, allocations: 156.1 kB / 391.7 MB, free: 2.438 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001724/0.2968, allocations: 2.879 MB / 394.5 MB, free: 15.64 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006665/0.2974, allocations: 45.3 kB / 394.6 MB, free: 15.62 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.116e-05/0.2975, allocations: 34.84 kB / 394.6 MB, free: 15.61 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.0004604/0.298, allocations: 265.3 kB / 394.9 MB, free: 15.41 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001449/0.2981, allocations: 89.38 kB / 395 MB, free: 15.36 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001002/0.2991, allocations: 0.5126 MB / 395.5 MB, free: 15.13 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.2991, allocations: 4.344 kB / 395.5 MB, free: 15.13 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.2992, allocations: 2.062 kB / 395.5 MB, free: 15.13 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.2992, allocations: 6.844 kB / 395.5 MB, free: 15.13 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002299/0.3015, allocations: 1.493 MB / 397 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.3015, allocations: 1.594 kB / 397 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003276/0.3018, allocations: 79.83 kB / 397.1 MB, free: 14.09 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002002/0.302, allocations: 82.11 kB / 397.2 MB, free: 14.04 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.904e-05/0.3021, allocations: 12.06 kB / 397.2 MB, free: 14.04 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002035/0.3041, allocations: 2.86 MB / 400 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.3041, allocations: 2.125 kB / 400 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001378/0.3055, allocations: 0.8164 MB / 400.8 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000379/0.3059, allocations: 206.1 kB / 401 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001679/0.3061, allocations: 8.125 kB / 401.1 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005028/0.3066, allocations: 40.59 kB / 401.1 MB, free: 10.42 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.415e-05/0.3067, allocations: 38.95 kB / 401.1 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-05/0.3067, allocations: 15.12 kB / 401.1 MB, free: 10.39 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008695/0.3076, allocations: 0.5712 MB / 401.7 MB, free: 10.07 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3076, allocations: 0 / 401.7 MB, free: 10.07 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001002/0.3086, allocations: 208.6 kB / 401.9 MB, free: 10.05 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.0002243/0.3089, allocations: 136.3 kB / 402.1 MB, free: 9.934 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001297/0.3102, allocations: 0.7171 MB / 402.8 MB, free: 9.516 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.3102, allocations: 0 / 402.8 MB, free: 9.516 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006874/0.3109, allocations: 460.5 kB / 403.2 MB, free: 9.191 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001386/0.3123, allocations: 214.3 kB / 403.4 MB, free: 9.09 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00317/0.3154, allocations: 2.3 MB / 405.7 MB, free: 7.43 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005707/0.316, allocations: 1.016 MB / 406.7 MB, free: 6.59 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001699/0.3162, allocations: 61.2 kB / 406.8 MB, free: 6.578 MB / 318.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3162, allocations: 2.562 kB / 406.8 MB, free: 6.578 MB / 318.1 MB Notification: Performance of Templates: time 0.02483/0.3411, allocations: 21.18 MB / 428 MB, free: 2.633 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (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 & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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