Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.FluxTubes.Sources,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|constantSource.V_m|constantSource.Phi|signalSource.V_m|signalSource.Phi|constantSource1.Phi|constantSource1.V_m|signalSource1.Phi|signalSource1.V_m",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources") translateModel(ModelicaTest.FluxTubes.Sources,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|constantSource.V_m|constantSource.Phi|signalSource.V_m|signalSource.Phi|constantSource1.Phi|constantSource1.V_m|signalSource1.Phi|signalSource1.V_m",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00105/0.00105, allocations: 175.4 kB / 16.72 MB, free: 5.059 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.347/1.347, allocations: 205.4 MB / 222.9 MB, free: 8.938 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008333/0.0008333, allocations: 94.39 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3747/0.3747, allocations: 43.55 MB / 363.1 MB, free: 52.07 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000399/0.0003991, allocations: 12 kB / 432 MB, free: 5.859 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1151, allocations: 58.86 MB / 490.8 MB, free: 10.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.FluxTubes.Sources): time 0.002589/0.1177, allocations: 2.201 MB / 493 MB, free: 8.699 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001039/0.1188, allocations: 0.745 MB / 493.8 MB, free: 7.945 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001138/0.1189, allocations: 8 kB / 493.8 MB, free: 7.938 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001563/0.1191, allocations: 47.64 kB / 493.8 MB, free: 7.891 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002037/0.1193, allocations: 91.42 kB / 493.9 MB, free: 7.801 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002129/0.1195, allocations: 71.91 kB / 494 MB, free: 7.73 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003303/0.1198, allocations: 378.5 kB / 494.3 MB, free: 7.359 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001941/0.12, allocations: 128.4 kB / 494.5 MB, free: 7.23 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001653/0.1202, allocations: 123.5 kB / 494.6 MB, free: 7.109 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001532/0.1204, allocations: 151.3 kB / 494.7 MB, free: 6.961 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.76e-05/0.1204, allocations: 16 kB / 494.8 MB, free: 6.945 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.248e-05/0.1205, allocations: 20 kB / 494.8 MB, free: 6.926 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.715e-05/0.1205, allocations: 55.7 kB / 494.8 MB, free: 6.871 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001407/0.1207, allocations: 184.9 kB / 495 MB, free: 6.684 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002448/0.1209, allocations: 303.1 kB / 495.3 MB, free: 6.387 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.1209, allocations: 0 / 495.3 MB, free: 6.387 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1209, allocations: 0 / 495.3 MB, free: 6.387 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.641e-06/0.121, allocations: 0 / 495.3 MB, free: 6.387 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.000855/0.1218, allocations: 0.6124 MB / 495.9 MB, free: 5.723 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.1219, allocations: 16.03 kB / 495.9 MB, free: 5.707 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.196e-05/0.1219, allocations: 44.38 kB / 496 MB, free: 5.664 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002691/0.1222, allocations: 264.8 kB / 496.2 MB, free: 5.363 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.983e-05/0.1222, allocations: 25.38 kB / 496.3 MB, free: 5.34 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.404e-05/0.1223, allocations: 36.38 kB / 496.3 MB, free: 5.305 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006122/0.1229, allocations: 374.1 kB / 496.7 MB, free: 4.918 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.1229, allocations: 0 / 496.7 MB, free: 4.918 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.908e-05/0.123, allocations: 16 kB / 496.7 MB, free: 4.902 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.849e-06/0.123, allocations: 8 kB / 496.7 MB, free: 4.895 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005856/0.1236, allocations: 291.7 kB / 497 MB, free: 4.609 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00183/0.1254, allocations: 1.365 MB / 498.3 MB, free: 3.148 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004622/0.1259, allocations: 202.6 kB / 498.5 MB, free: 2.914 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002136/0.1261, allocations: 91.56 kB / 498.6 MB, free: 2.812 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.484e-05/0.1261, allocations: 3.938 kB / 498.6 MB, free: 2.809 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.412e-05/0.1262, allocations: 42.55 kB / 498.7 MB, free: 2.758 MB / 378.7 MB Notification: Performance of pre-optimization done (n=15): time 1.443e-06/0.1262, allocations: 0 / 498.7 MB, free: 2.758 MB / 378.7 MB Notification: Performance of matching and sorting (n=15): time 0.0007513/0.1269, allocations: 281.2 kB / 498.9 MB, free: 2.477 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.251e-05/0.127, allocations: 136.5 kB / 499.1 MB, free: 2.312 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003106/0.1273, allocations: 324.4 kB / 499.4 MB, free: 1.988 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.593e-05/0.1274, allocations: 33.7 kB / 499.4 MB, free: 1.949 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001312/0.1275, allocations: 227.7 kB / 499.6 MB, free: 1.723 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.939e-05/0.1276, allocations: 59.19 kB / 499.7 MB, free: 1.664 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.236e-05/0.1276, allocations: 4 kB / 499.7 MB, free: 1.66 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.1277, allocations: 346.7 kB / 0.4883 GB, free: 1.312 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002342/0.1279, allocations: 92.5 kB / 0.4884 GB, free: 1.223 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002673/0.1282, allocations: 180.1 kB / 0.4886 GB, free: 1.008 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004823/0.1287, allocations: 275.1 kB / 0.4888 GB, free: 0.6992 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1287, allocations: 4 kB / 0.4889 GB, free: 0.6953 MB / 378.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006071/0.1293, allocations: 325 kB / 0.4892 GB, free: 380 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.1294, allocations: 8 kB / 0.4892 GB, free: 372 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/0.1294, allocations: 4 kB / 0.4892 GB, free: 368 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.1294, allocations: 4 kB / 0.4892 GB, free: 364 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004002/0.1298, allocations: 104 kB / 0.4893 GB, free: 260 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.508e-06/0.1298, allocations: 4 kB / 0.4893 GB, free: 256 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000231/0.1301, allocations: 51.67 kB / 0.4893 GB, free: 204 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.27e-05/0.1301, allocations: 11.98 kB / 0.4893 GB, free: 192 kB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (34): * Single equations (assignments): 34 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001425/0.1302, allocations: 161.6 kB / 0.4895 GB, free: 20 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2119/0.3421, allocations: 30.52 kB / 0.4895 GB, free: 42.89 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001177/0.3423, allocations: 29.8 kB / 0.4896 GB, free: 42.89 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.3423, allocations: 2.438 kB / 0.4896 GB, free: 42.89 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.3423, allocations: 3.844 kB / 0.4896 GB, free: 42.89 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.3423, allocations: 1.531 kB / 0.4896 GB, free: 42.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009118/0.3432, allocations: 0.5875 MB / 0.4901 GB, free: 42.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.3433, allocations: 3.656 kB / 0.4901 GB, free: 42.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002954/0.3436, allocations: 67.45 kB / 0.4902 GB, free: 42.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.193e-06/0.3436, allocations: 2.344 kB / 0.4902 GB, free: 42.48 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.819e-05/0.3436, allocations: 6.375 kB / 0.4902 GB, free: 42.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.823e-06/0.3436, allocations: 11.88 kB / 0.4902 GB, free: 42.48 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.3436, allocations: 4.844 kB / 0.4902 GB, free: 42.48 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005005/0.3441, allocations: 414.8 kB / 0.4906 GB, free: 42.24 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.972e-05/0.3442, allocations: 109 kB / 0.4907 GB, free: 42.14 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.6e-05/0.3442, allocations: 7.078 kB / 0.4907 GB, free: 42.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002245/0.3445, allocations: 30.84 kB / 0.4908 GB, free: 42.14 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.457e-05/0.3445, allocations: 15.5 kB / 0.4908 GB, free: 42.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.324e-05/0.3446, allocations: 5.188 kB / 0.4908 GB, free: 42.14 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002077/0.3448, allocations: 227.4 kB / 0.491 GB, free: 42.06 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3448, allocations: 0 / 0.491 GB, free: 42.06 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004012/0.3452, allocations: 69.86 kB / 0.4911 GB, free: 42.06 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 simulation (15): * Single equations (assignments): 15 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.179e-05/0.3453, allocations: 99.47 kB / 0.4912 GB, free: 41.98 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005604/0.3459, allocations: 214.7 kB / 0.4914 GB, free: 41.98 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3459, allocations: 0 / 0.4914 GB, free: 41.98 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002177/0.3461, allocations: 98.73 kB / 0.4915 GB, free: 41.98 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004734/0.3466, allocations: 25.69 kB / 0.4915 GB, free: 41.97 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008448/0.3474, allocations: 0.6898 MB / 0.4922 GB, free: 41.53 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002297/0.3477, allocations: 0.7743 MB / 0.4929 GB, free: 40.83 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.542e-05/0.3478, allocations: 21.81 kB / 0.4929 GB, free: 40.82 MB / 378.7 MB Notification: Performance of SimCode: time 3.61e-07/0.3478, allocations: 0 / 0.4929 GB, free: 40.82 MB / 378.7 MB Notification: Performance of Templates: time 0.005179/0.3529, allocations: 3.052 MB / 0.4959 GB, free: 40.61 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/FluxTubes/Sources/Sources.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches