Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001719/0.001719, allocations: 112.7 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001939/0.001939, allocations: 214 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 230.5 MB / 257.4 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2503/0.2503, allocations: 46.93 MB / 360.8 MB, free: 4.18 MB / 286.1 MB " [Timeout remaining time 179] 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.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002611/0.002611, allocations: 87.86 kB / 0.4962 GB, free: 7.781 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.333/0.3356, allocations: 66.07 MB / 0.5607 GB, free: 4.184 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001568/0.3372, allocations: 485.1 kB / 0.5612 GB, free: 3.711 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003743/0.3409, allocations: 2.443 MB / 0.5635 GB, free: 1.25 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.809e-05/0.3409, allocations: 0 / 0.5635 GB, free: 1.25 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.599e-05/0.3409, allocations: 0 / 0.5635 GB, free: 1.25 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.131e-06/0.341, allocations: 0 / 0.5635 GB, free: 1.25 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/ComplexMath.mo:4:3-189:23:writable] Warning: Pure function 'ModelicaTest.ComplexMath.ComplexFunctions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.00314/0.3441, allocations: 1.171 MB / 0.5647 GB, free: 80 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.511e-05/0.3441, allocations: 0 / 0.5647 GB, free: 80 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.102e-05/0.3442, allocations: 0 / 0.5647 GB, free: 80 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.957e-05/0.3442, allocations: 7.984 kB / 0.5647 GB, free: 72 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.062e-05/0.3442, allocations: 0 / 0.5647 GB, free: 72 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.231e-06/0.3442, allocations: 0 / 0.5647 GB, free: 72 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001793/0.346, allocations: 1.038 MB / 0.5657 GB, free: 15.03 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.535e-06/0.346, allocations: 0 / 0.5657 GB, free: 15.03 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.9e-05/0.3461, allocations: 0 / 0.5657 GB, free: 15.03 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006485/0.3467, allocations: 448.9 kB / 0.5661 GB, free: 14.59 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.3467, allocations: 4 kB / 0.5661 GB, free: 14.59 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3467, allocations: 0 / 0.5661 GB, free: 14.59 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.829e-06/0.3467, allocations: 0 / 0.5661 GB, free: 14.59 MB / 414.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.000477/0.3472, allocations: 371.2 kB / 0.5665 GB, free: 14.19 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.3472, allocations: 16.03 kB / 0.5665 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.999e-05/0.3473, allocations: 34.69 kB / 0.5665 GB, free: 14.13 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.381e-05/0.3473, allocations: 0.9375 kB / 0.5665 GB, free: 14.13 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.818e-05/0.3474, allocations: 102.5 kB / 0.5666 GB, free: 14.01 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.279e-05/0.3474, allocations: 4.359 kB / 0.5667 GB, free: 14 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.08e-05/0.3474, allocations: 4.375 kB / 0.5667 GB, free: 14 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.617e-05/0.3475, allocations: 29.83 kB / 0.5667 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.755e-06/0.3475, allocations: 0 / 0.5667 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.083e-06/0.3475, allocations: 3.938 kB / 0.5667 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.3475, allocations: 4 kB / 0.5667 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.84e-05/0.3475, allocations: 8 kB / 0.5667 GB, free: 13.95 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001275/0.3477, allocations: 112.8 kB / 0.5668 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.021e-05/0.3477, allocations: 26.53 kB / 0.5668 GB, free: 13.76 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.409e-05/0.3477, allocations: 4.859 kB / 0.5668 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.203e-06/0.3477, allocations: 0 / 0.5668 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.988e-05/0.3478, allocations: 64.27 kB / 0.5669 GB, free: 13.68 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.3478, allocations: 8 kB / 0.5669 GB, free: 13.67 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001741/0.348, allocations: 59.34 kB / 0.567 GB, free: 13.6 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.328e-05/0.348, allocations: 85.09 kB / 0.567 GB, free: 13.5 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.024e-05/0.3481, allocations: 93.81 kB / 0.5671 GB, free: 13.39 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.429e-05/0.3481, allocations: 25.7 kB / 0.5672 GB, free: 13.36 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.535e-05/0.3481, allocations: 80.14 kB / 0.5672 GB, free: 13.28 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.474e-05/0.3481, allocations: 0 / 0.5672 GB, free: 13.28 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.794e-05/0.3482, allocations: 17.72 kB / 0.5673 GB, free: 13.26 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.3483, allocations: 315 kB / 0.5676 GB, free: 12.94 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.307e-06/0.3483, allocations: 0 / 0.5676 GB, free: 12.94 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.699e-06/0.3483, allocations: 0 / 0.5676 GB, free: 12.94 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.73e-05/0.3484, allocations: 60.27 kB / 0.5676 GB, free: 12.87 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.3484, allocations: 0 / 0.5676 GB, free: 12.87 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.211e-05/0.3485, allocations: 71.33 kB / 0.5677 GB, free: 12.79 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001055/0.3486, allocations: 33.64 kB / 0.5677 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.3486, allocations: 0 / 0.5677 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/0.3486, allocations: 8.094 kB / 0.5677 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.022e-06/0.3486, allocations: 0 / 0.5677 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/0.3486, allocations: 0 / 0.5677 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.747e-05/0.3486, allocations: 4 kB / 0.5677 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.851e-06/0.3486, allocations: 0 / 0.5677 GB, free: 12.73 MB / 414.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.875e-05/0.3487, allocations: 144.6 kB / 0.5679 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.048e-05/0.3487, allocations: 3.938 kB / 0.5679 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.098e-05/0.3487, allocations: 3 kB / 0.5679 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.3487, allocations: 0 / 0.5679 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.3488, allocations: 4 kB / 0.5679 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.3488, allocations: 0 / 0.5679 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.841e-05/0.3489, allocations: 120.8 kB / 0.568 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.3489, allocations: 0 / 0.568 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.3489, allocations: 0 / 0.568 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.3489, allocations: 3.938 kB / 0.568 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.951e-06/0.3489, allocations: 0 / 0.568 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.3489, allocations: 4 kB / 0.568 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3489, allocations: 3.984 kB / 0.568 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001144/0.349, allocations: 102.7 kB / 0.5681 GB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.127e-05/0.349, allocations: 7.938 kB / 0.5681 GB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.048e-05/0.349, allocations: 0 / 0.5681 GB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.246e-06/0.349, allocations: 0 / 0.5681 GB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.216e-05/0.349, allocations: 0 / 0.5681 GB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.679e-06/0.349, allocations: 4 kB / 0.5681 GB, free: 12.26 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.169e-05/0.3491, allocations: 75.28 kB / 0.5682 GB, free: 12.18 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3491, allocations: 0 / 0.5682 GB, free: 12.18 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004571/0.3495, allocations: 155.5 kB / 0.5683 GB, free: 12.03 MB / 414.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.001067/0.3506, allocations: 0.9092 MB / 0.5692 GB, free: 11.09 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001069/0.3507, allocations: 63.34 kB / 0.5693 GB, free: 11.02 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.3507, allocations: 0 / 0.5693 GB, free: 11.02 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.666e-05/0.3507, allocations: 55.41 kB / 0.5693 GB, free: 10.95 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001229/0.3509, allocations: 0 / 0.5693 GB, free: 10.95 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003926/0.3513, allocations: 194.3 kB / 0.5695 GB, free: 10.72 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000306/0.3516, allocations: 0.6729 MB / 0.5702 GB, free: 10.02 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.192e-06/0.3516, allocations: 0 / 0.5702 GB, free: 10.02 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.515e-05/0.3516, allocations: 11.38 kB / 0.5702 GB, free: 10.01 MB / 414.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3516, allocations: 0 / 0.5702 GB, free: 10.01 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03384/0.3854, allocations: 5.788 MB / 0.5758 GB, free: 4.312 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.56, allocations: 4.062 kB / 0.5758 GB, free: 4.309 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions_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_ComplexMath_TestComplexFunctions.fmu > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.56615838700236]