Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001102/0.001102, allocations: 120.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00127/0.001271, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2195/0.2195, allocations: 46.11 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001657/0.001657, allocations: 79.88 kB / 480.8 MB, free: 4.574 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3383/0.34, allocations: 62.42 MB / 0.5305 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001547/0.3416, allocations: 492.5 kB / 0.531 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001941/0.3436, allocations: 1.14 MB / 0.5321 GB, free: 12.17 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.463e-05/0.3436, allocations: 4.938 kB / 0.5321 GB, free: 12.17 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.716e-05/0.3436, allocations: 3.938 kB / 0.5321 GB, free: 12.16 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.422e-06/0.3437, allocations: 3.938 kB / 0.5321 GB, free: 12.16 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Mechanics/MultiBody/Visualizers/Colors/colorMapToSvg.mo:2:1-205:18:writable] Warning: Pure function 'Modelica.Mechanics.MultiBody.Visualizers.Colors.colorMapToSvg' contains a call to impure function 'Modelica.Utilities.Files.remove'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:663:3-677:20:writable] Warning: Pure function 'ModelicaTest.Math.colorMapToSvg' contains a call to impure function 'Modelica.Mechanics.MultiBody.Visualizers.Colors.colorMapToSvg'. Notification: Performance of NFTyping.typeClassSections: time 0.001946/0.3456, allocations: 0.6761 MB / 0.5328 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.796e-05/0.3457, allocations: 5.125 kB / 0.5328 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.764e-05/0.3457, allocations: 6.125 kB / 0.5328 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.634e-05/0.3457, allocations: 3.984 kB / 0.5328 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.564e-05/0.3458, allocations: 1.188 kB / 0.5328 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.671e-06/0.3458, allocations: 0 / 0.5328 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002929/0.3487, allocations: 2.446 MB / 0.5352 GB, free: 10.65 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.654e-06/0.3487, allocations: 1.094 kB / 0.5352 GB, free: 10.65 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.99e-05/0.3488, allocations: 1.094 kB / 0.5352 GB, free: 10.65 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004405/0.3492, allocations: 368.5 kB / 0.5355 GB, free: 10.5 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.3492, allocations: 0 / 0.5355 GB, free: 10.5 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3492, allocations: 0.9375 kB / 0.5355 GB, free: 10.5 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.668e-06/0.3492, allocations: 0 / 0.5355 GB, free: 10.5 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004088/0.3497, allocations: 377.5 kB / 0.5359 GB, free: 10.09 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.3497, allocations: 9.625 kB / 0.5359 GB, free: 10.09 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.175e-05/0.3497, allocations: 35.56 kB / 0.5359 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.284e-05/0.3498, allocations: 0 / 0.5359 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.932e-05/0.3499, allocations: 160.1 kB / 0.5361 GB, free: 9.848 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.462e-05/0.3499, allocations: 7.938 kB / 0.5361 GB, free: 9.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.246e-06/0.3499, allocations: 1.094 kB / 0.5361 GB, free: 9.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.173e-05/0.35, allocations: 32.02 kB / 0.5361 GB, free: 9.805 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.773e-06/0.35, allocations: 0 / 0.5361 GB, free: 9.805 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.165e-06/0.35, allocations: 1.406 kB / 0.5361 GB, free: 9.805 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/0.35, allocations: 0 / 0.5361 GB, free: 9.805 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.102e-05/0.3501, allocations: 5.391 kB / 0.5361 GB, free: 9.801 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001381/0.3502, allocations: 158.8 kB / 0.5363 GB, free: 9.598 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.863e-05/0.3503, allocations: 24.8 kB / 0.5363 GB, free: 9.566 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.443e-05/0.3503, allocations: 5.953 kB / 0.5363 GB, free: 9.559 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.717e-06/0.3503, allocations: 0 / 0.5363 GB, free: 9.559 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.962e-05/0.3503, allocations: 57.39 kB / 0.5363 GB, free: 9.488 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.3503, allocations: 0 / 0.5363 GB, free: 9.488 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000161/0.3505, allocations: 66.67 kB / 0.5364 GB, free: 9.418 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.478e-05/0.3506, allocations: 82.14 kB / 0.5365 GB, free: 9.32 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.561e-05/0.3506, allocations: 97.94 kB / 0.5366 GB, free: 9.215 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.117e-05/0.3506, allocations: 26.8 kB / 0.5366 GB, free: 9.184 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.742e-05/0.3507, allocations: 84.08 kB / 0.5367 GB, free: 9.098 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.831e-05/0.3507, allocations: 1.125 kB / 0.5367 GB, free: 9.098 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.524e-05/0.3507, allocations: 11.97 kB / 0.5367 GB, free: 9.082 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.3508, allocations: 318.8 kB / 0.537 GB, free: 8.762 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.456e-06/0.3508, allocations: 1.344 kB / 0.537 GB, free: 8.762 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.52e-06/0.3509, allocations: 1.219 kB / 0.537 GB, free: 8.762 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.571e-05/0.3509, allocations: 63.83 kB / 0.5371 GB, free: 8.688 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.3509, allocations: 3.938 kB / 0.5371 GB, free: 8.684 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.221e-05/0.351, allocations: 57.97 kB / 0.5371 GB, free: 8.621 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.473e-05/0.351, allocations: 39.06 kB / 0.5372 GB, free: 8.582 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.351, allocations: 3.938 kB / 0.5372 GB, free: 8.578 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.3511, allocations: 0.8125 kB / 0.5372 GB, free: 8.578 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.533e-06/0.3511, allocations: 1.062 kB / 0.5372 GB, free: 8.578 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.3511, allocations: 0 / 0.5372 GB, free: 8.578 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.651e-05/0.3511, allocations: 1.281 kB / 0.5372 GB, free: 8.578 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.682e-06/0.3511, allocations: 4.031 kB / 0.5372 GB, free: 8.574 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.354e-05/0.3512, allocations: 138 kB / 0.5373 GB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.746e-06/0.3512, allocations: 1 kB / 0.5373 GB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.136e-05/0.3512, allocations: 3.125 kB / 0.5373 GB, free: 8.422 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.3512, allocations: 4.734 kB / 0.5373 GB, free: 8.418 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.3513, allocations: 0 / 0.5373 GB, free: 8.418 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.3513, allocations: 1.156 kB / 0.5373 GB, free: 8.418 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.039e-05/0.3514, allocations: 146.8 kB / 0.5375 GB, free: 8.227 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.3514, allocations: 0 / 0.5375 GB, free: 8.227 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.3514, allocations: 0.6562 kB / 0.5375 GB, free: 8.227 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/0.3514, allocations: 4.938 kB / 0.5375 GB, free: 8.223 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.743e-06/0.3514, allocations: 3.938 kB / 0.5375 GB, free: 8.219 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.3514, allocations: 0.9688 kB / 0.5375 GB, free: 8.219 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.3514, allocations: 3.984 kB / 0.5375 GB, free: 8.215 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.941e-05/0.3515, allocations: 93.41 kB / 0.5376 GB, free: 8.109 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.999e-05/0.3515, allocations: 77.77 kB / 0.5376 GB, free: 8.016 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.463e-05/0.3516, allocations: 5.391 kB / 0.5376 GB, free: 8.012 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.117e-06/0.3516, allocations: 4.875 kB / 0.5376 GB, free: 8.008 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.274e-05/0.3516, allocations: 5.188 kB / 0.5376 GB, free: 8.004 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.435e-06/0.3516, allocations: 0 / 0.5376 GB, free: 8.004 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.497e-05/0.3516, allocations: 76.38 kB / 0.5377 GB, free: 7.93 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3516, allocations: 0 / 0.5377 GB, free: 7.93 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003414/0.352, allocations: 55.08 kB / 0.5378 GB, free: 7.906 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001662/0.3536, allocations: 1.065 MB / 0.5388 GB, free: 7.055 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000106/0.3538, allocations: 69.36 kB / 0.5389 GB, free: 6.98 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3538, allocations: 4.062 kB / 0.5389 GB, free: 6.977 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.069e-05/0.3538, allocations: 54.09 kB / 0.5389 GB, free: 6.914 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001357/0.354, allocations: 8.078 kB / 0.5389 GB, free: 6.914 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003661/0.3543, allocations: 132.6 kB / 0.5391 GB, free: 6.762 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002534/0.3546, allocations: 0.6704 MB / 0.5397 GB, free: 6.066 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.61e-06/0.3546, allocations: 0 / 0.5397 GB, free: 6.066 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.669e-05/0.3546, allocations: 8.812 kB / 0.5397 GB, free: 6.059 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3546, allocations: 0 / 0.5397 GB, free: 6.059 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02218/0.3768, allocations: 3.048 MB / 0.5427 GB, free: 4.496 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.595/7.972, allocations: 13.78 kB / 0.5427 GB, free: 4.488 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_Math_TestColorMapToSvg.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches