Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|dcpm.ia|dcpm.tauElectrical|dcee.ia|dcee.tauElectrical|dcse.ia|dcse.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w|loadInertia3.phi|loadInertia3.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|dcpm.ia|dcpm.tauElectrical|dcee.ia|dcee.tauElectrical|dcse.ia|dcse.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w|loadInertia3.phi|loadInertia3.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001618/0.001618, allocations: 188.1 kB / 8.53 MB, free: 1.84 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.208/1.208, allocations: 225.5 MB / 234.4 MB, free: 3.375 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008389/0.000839, allocations: 94.14 kB / 286.3 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.436e-06/8.466e-06, allocations: 4 kB / 343.1 MB, free: 8.707 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08075/0.08077, allocations: 51.48 MB / 394.6 MB, free: 5.176 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2338/0.3146, allocations: 111.8 MB / 0.4945 GB, free: 14.04 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002169/0.3148, allocations: 78.77 kB / 0.4946 GB, free: 14 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.183/0.4978, allocations: 69.98 MB / 0.5629 GB, free: 12.63 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002286/0.4981, allocations: 63.94 kB / 0.563 GB, free: 12.57 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 666 * Number of variables: 666 Notification: Performance of Generate backend data structure: time 0.005492/0.5036, allocations: 2.465 MB / 0.5654 GB, free: 10.05 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.5037, allocations: 11.97 kB / 0.5654 GB, free: 10.04 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002295/0.506, allocations: 499.6 kB / 0.5659 GB, free: 9.543 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004743/0.5107, allocations: 1.884 MB / 0.5677 GB, free: 7.605 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001141/0.5109, allocations: 87.91 kB / 0.5678 GB, free: 7.52 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005065/0.5114, allocations: 159.9 kB / 0.568 GB, free: 7.363 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00338/0.5148, allocations: 1.381 MB / 0.5693 GB, free: 5.977 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00392/0.5187, allocations: 1.992 MB / 0.5713 GB, free: 3.863 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.612e-05/0.5188, allocations: 15.89 kB / 0.5713 GB, free: 3.848 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001556/0.519, allocations: 0 / 0.5713 GB, free: 3.848 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.405e-05/0.519, allocations: 64 kB / 0.5713 GB, free: 3.785 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1892/0.7083, allocations: 10.27 MB / 0.5814 GB, free: 60.46 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005052/0.7088, allocations: 366.8 kB / 0.5817 GB, free: 60.44 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005121/0.7093, allocations: 349.9 kB / 0.582 GB, free: 60.43 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.468e-05/0.7094, allocations: 7.906 kB / 0.582 GB, free: 60.43 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.157e-05/0.7094, allocations: 46.12 kB / 0.5821 GB, free: 60.39 MB / 442.7 MB Notification: Performance of pre-optimization done (n=83): time 3.256e-06/0.7094, allocations: 0 / 0.5821 GB, free: 60.39 MB / 442.7 MB Notification: Performance of matching and sorting (n=92): time 0.00319/0.7126, allocations: 2.062 MB / 0.5841 GB, free: 59.66 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.137e-05/0.7127, allocations: 169.5 kB / 0.5843 GB, free: 59.47 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001676/0.7144, allocations: 1.457 MB / 0.5857 GB, free: 59.25 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.945e-05/0.7144, allocations: 25.7 kB / 0.5857 GB, free: 59.22 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004241/0.7149, allocations: 1.18 MB / 0.5869 GB, free: 58.68 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000167/0.715, allocations: 325.8 kB / 0.5872 GB, free: 58.52 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.273e-05/0.7151, allocations: 0 / 0.5872 GB, free: 58.52 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.994e-05/0.7152, allocations: 381.6 kB / 0.5875 GB, free: 58.21 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004355/0.7156, allocations: 298.9 kB / 0.5878 GB, free: 58.21 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006959/0.7163, allocations: 1.163 MB / 0.589 GB, free: 57.1 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006457/0.717, allocations: 0.5054 MB / 0.5895 GB, free: 57.09 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.117e-06/0.717, allocations: 7.312 kB / 0.5895 GB, free: 57.09 MB / 442.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.002146/0.7191, allocations: 1.527 MB / 0.591 GB, free: 56.89 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001651/0.7208, allocations: 12.23 MB / 0.6029 GB, free: 44.05 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.001e-05/0.7208, allocations: 31.03 kB / 0.6029 GB, free: 44.05 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005201/0.7214, allocations: 182.1 kB / 0.6031 GB, free: 44.02 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00121/0.7226, allocations: 423.1 kB / 0.6035 GB, free: 44.02 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002859/0.7255, allocations: 5.341 MB / 0.6087 GB, free: 39.17 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001536/0.727, allocations: 67.08 kB / 0.6088 GB, free: 39.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001033/0.7271, allocations: 97.41 kB / 0.6089 GB, free: 39.16 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.141e-06/0.7271, allocations: 7.188 kB / 0.6089 GB, free: 39.16 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001788/0.7289, allocations: 1.274 MB / 0.6101 GB, free: 39.11 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.447e-05/0.729, allocations: 27.66 kB / 0.6102 GB, free: 39.11 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004124/0.7294, allocations: 169.4 kB / 0.6103 GB, free: 39.08 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001135/0.7305, allocations: 419.2 kB / 0.6107 GB, free: 39.08 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00274/0.7333, allocations: 5.344 MB / 0.6159 GB, free: 34.23 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001441/0.7347, allocations: 49.23 kB / 0.616 GB, free: 34.23 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.791e-05/0.7349, allocations: 98.59 kB / 0.6161 GB, free: 34.23 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 136 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (225): * Single equations (assignments): 221 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002391/0.7351, allocations: 184.5 kB / 0.6163 GB, free: 34.12 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002323/0.7353, allocations: 206.1 kB / 0.6164 GB, free: 34.02 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001334/0.7367, allocations: 0.7835 MB / 0.6172 GB, free: 33.91 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.7367, allocations: 9.797 kB / 0.6172 GB, free: 33.91 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.7367, allocations: 3.906 kB / 0.6172 GB, free: 33.91 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.7367, allocations: 10.5 kB / 0.6172 GB, free: 33.91 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003553/0.7403, allocations: 2.655 MB / 0.6198 GB, free: 33.31 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-06/0.7403, allocations: 6.562 kB / 0.6198 GB, free: 33.31 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006184/0.7409, allocations: 175 kB / 0.62 GB, free: 33.29 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003838/0.7413, allocations: 124.5 kB / 0.6201 GB, free: 33.26 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.935e-05/0.7414, allocations: 13.47 kB / 0.6201 GB, free: 33.26 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002466/0.7438, allocations: 5.115 MB / 0.6251 GB, free: 28.46 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.7439, allocations: 12.88 kB / 0.6251 GB, free: 28.46 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001583/0.7455, allocations: 1.749 MB / 0.6268 GB, free: 27.37 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005629/0.746, allocations: 343.6 kB / 0.6272 GB, free: 27.17 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002569/0.7463, allocations: 13.19 kB / 0.6272 GB, free: 27.17 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008487/0.7472, allocations: 51.94 kB / 0.6272 GB, free: 27.17 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.223e-05/0.7473, allocations: 67.08 kB / 0.6273 GB, free: 27.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.155e-05/0.7473, allocations: 30.75 kB / 0.6273 GB, free: 27.16 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.00129/0.7486, allocations: 1.041 MB / 0.6283 GB, free: 27.02 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002657/0.7513, allocations: 0.857 MB / 0.6292 GB, free: 27.02 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 6 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcee.inertiaRotor.phi,dcee.inertiaRotor.w,dcse.inertiaRotor.phi,dcse.inertiaRotor.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005051/0.7518, allocations: 0.4935 MB / 0.6297 GB, free: 26.9 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002716/0.7545, allocations: 2.444 MB / 0.6321 GB, free: 25.93 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.169e-06/0.7545, allocations: 3.719 kB / 0.6321 GB, free: 25.93 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006922/0.7552, allocations: 0.7284 MB / 0.6328 GB, free: 25.5 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001875/0.7571, allocations: 460.5 kB / 0.6332 GB, free: 25.48 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005151/0.7623, allocations: 3.18 MB / 0.6363 GB, free: 24.25 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001201/0.7635, allocations: 1.757 MB / 0.638 GB, free: 39.47 MB / 458.7 MB Notification: Performance of SimCode: time 7.71e-07/0.7635, allocations: 0 / 0.638 GB, free: 39.47 MB / 458.7 MB Notification: Performance of Templates: time 0.05055/0.8141, allocations: 29.98 MB / 0.6673 GB, free: 37.44 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DC_CompareCharacteristics/DC_CompareCharacteristics.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches