Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ConPNlib_ConPNlib.Examples.Test12.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo", uses=false) Using package ConPNlib with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo) Running command: "" <> buildModelFMU(ConPNlib.Examples.Test12,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ConPNlib.Examples.Test12,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo): time 0.005493/0.005493, allocations: 1.361 MB / 16.64 MB, free: 5.168 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 2.128e-05/2.137e-05, allocations: 0 / 23.8 MB, free: 3.664 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0007568/0.0008003, allocations: 366.9 kB / 24.16 MB, free: 3.316 MB / 13.93 MB Notification: Performance of NFInst.instantiate(ConPNlib.Examples.Test12): time 0.001487/0.002295, allocations: 1.757 MB / 25.92 MB, free: 1.559 MB / 13.93 MB Notification: Performance of NFInst.instExpressions: time 0.00163/0.003937, allocations: 0.9877 MB / 26.9 MB, free: 0.5742 MB / 13.93 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002062/0.004155, allocations: 7.938 kB / 26.91 MB, free: 0.5664 MB / 13.93 MB Notification: Performance of NFTyping.typeComponents: time 0.0002786/0.004443, allocations: 131.8 kB / 27.04 MB, free: 448 kB / 13.93 MB Notification: Performance of NFTyping.typeBindings: time 0.0007431/0.005197, allocations: 348.5 kB / 27.38 MB, free: 100 kB / 13.93 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001486/0.005357, allocations: 83.91 kB / 27.46 MB, free: 16 kB / 13.93 MB Notification: Performance of NFFlatten.flatten: time 0.000767/0.006133, allocations: 0.7355 MB / 28.2 MB, free: 3.926 MB / 18.57 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004673/0.006611, allocations: 403.1 kB / 28.59 MB, free: 3.512 MB / 18.57 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002849/0.006904, allocations: 294.2 kB / 28.88 MB, free: 3.223 MB / 18.57 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003387/0.00725, allocations: 313.8 kB / 29.19 MB, free: 2.914 MB / 18.57 MB Notification: Performance of NFPackage.collectConstants: time 6.682e-05/0.007326, allocations: 28 kB / 29.21 MB, free: 2.887 MB / 18.57 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003828/0.007715, allocations: 223.6 kB / 29.43 MB, free: 2.668 MB / 18.57 MB Notification: Performance of NFScalarize.scalarize: time 0.0002007/0.007925, allocations: 175.2 kB / 29.6 MB, free: 2.496 MB / 18.57 MB Notification: Performance of NFVerifyModel.verify: time 0.0003403/0.008276, allocations: 355.2 kB / 29.95 MB, free: 2.141 MB / 18.57 MB Notification: Performance of NFConvertDAE.convert: time 0.00102/0.009304, allocations: 0.9075 MB / 30.86 MB, free: 1.23 MB / 18.57 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.009321, allocations: 0 / 30.86 MB, free: 1.23 MB / 18.57 MB Notification: Performance of FrontEnd: time 2.264e-06/0.009332, allocations: 4 kB / 30.86 MB, free: 1.227 MB / 18.57 MB Notification: Performance of Transformations before backend: time 1.1e-05/0.009349, allocations: 0 / 30.86 MB, free: 1.227 MB / 18.57 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 269 * Number of variables: 269 Notification: Performance of Generate backend data structure: time 0.001355/0.01071, allocations: 0.9608 MB / 31.82 MB, free: 200 kB / 18.57 MB Notification: Performance of prepare preOptimizeDAE: time 5.368e-05/0.01077, allocations: 12.31 kB / 31.83 MB, free: 188 kB / 18.57 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002019/0.01098, allocations: 172.8 kB / 32 MB, free: 4 kB / 18.57 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008115/0.01911, allocations: 99.61 kB / 32.1 MB, free: 7.273 MB / 18.57 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006156/0.01974, allocations: 488.7 kB / 32.58 MB, free: 7.012 MB / 18.57 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.764e-05/0.01984, allocations: 85.77 kB / 32.66 MB, free: 7.008 MB / 18.57 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001574/0.02, allocations: 106.2 kB / 32.76 MB, free: 7.008 MB / 18.57 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001978/0.02199, allocations: 1.494 MB / 34.26 MB, free: 6.527 MB / 18.57 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.165e-05/0.02202, allocations: 5.219 kB / 34.26 MB, free: 6.523 MB / 18.57 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.658e-05/0.0221, allocations: 50.66 kB / 34.31 MB, free: 6.488 MB / 18.57 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001287/0.02224, allocations: 97.92 kB / 34.41 MB, free: 6.395 MB / 18.57 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00127/0.02352, allocations: 1.069 MB / 35.48 MB, free: 5.328 MB / 18.57 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002971/0.0265, allocations: 2.896 MB / 38.37 MB, free: 2.336 MB / 18.57 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008299/0.02734, allocations: 0.7573 MB / 39.13 MB, free: 1.527 MB / 18.57 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004696/0.02782, allocations: 458.1 kB / 39.58 MB, free: 1.078 MB / 18.57 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004814/0.02831, allocations: 0.8587 MB / 40.44 MB, free: 36 kB / 18.57 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007232/0.03556, allocations: 40.25 kB / 40.48 MB, free: 6.418 MB / 18.57 MB Notification: Performance of pre-optimization done (n=52): time 5.841e-06/0.03558, allocations: 0 / 40.48 MB, free: 6.418 MB / 18.57 MB Notification: Performance of matching and sorting (n=52): time 0.003316/0.0389, allocations: 1.723 MB / 42.2 MB, free: 6.176 MB / 18.57 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.328e-05/0.03901, allocations: 246.3 kB / 42.44 MB, free: 5.926 MB / 18.57 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003262/0.03934, allocations: 354.3 kB / 42.79 MB, free: 5.77 MB / 18.57 MB Notification: Performance of collectPreVariables (initialization): time 4.109e-05/0.03939, allocations: 42.75 kB / 42.83 MB, free: 5.73 MB / 18.57 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002169/0.03962, allocations: 400.4 kB / 43.22 MB, free: 5.465 MB / 18.57 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001027/0.03973, allocations: 169.2 kB / 43.38 MB, free: 5.348 MB / 18.57 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.454e-05/0.03977, allocations: 11.81 kB / 43.4 MB, free: 5.34 MB / 18.57 MB Notification: Performance of setup shared object (initialization): time 7.75e-05/0.03985, allocations: 357.6 kB / 43.75 MB, free: 5.008 MB / 18.57 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000483/0.04034, allocations: 371.2 kB / 44.11 MB, free: 4.859 MB / 18.57 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005091/0.04086, allocations: 0.5365 MB / 44.64 MB, free: 4.305 MB / 18.57 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008977/0.04177, allocations: 0.9741 MB / 45.62 MB, free: 3.246 MB / 18.57 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.04178, allocations: 0 / 45.62 MB, free: 3.246 MB / 18.57 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001484/0.04327, allocations: 1.297 MB / 46.92 MB, free: 1.922 MB / 18.57 MB Notification: Performance of prepare postOptimizeDAE: time 7.38e-05/0.04335, allocations: 121.1 kB / 47.03 MB, free: 1.785 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.04337, allocations: 4 kB / 47.04 MB, free: 1.781 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00181/0.04519, allocations: 465.8 kB / 47.49 MB, free: 1.328 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002313/0.04543, allocations: 83.83 kB / 47.57 MB, free: 1.246 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006956/0.04614, allocations: 0.9015 MB / 48.48 MB, free: 336 kB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008338/0.05449, allocations: 105.4 kB / 48.58 MB, free: 5.426 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001547/0.05468, allocations: 39.83 kB / 48.62 MB, free: 5.426 MB / 18.57 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.P2.fireIn[1],P2.feeding,$PRE.P3.fireIn[1],P3.feeding,P1.outTransition[2].arcType,P1.outTransition[1].arcType,T1.activation.emptied[1],T1.activation.active,T1.activation.weaklyOutputActiveVec[1],T2.activation.fed[1],T2.activation.active,T2.activation.weaklyInputActiveVec[1],T2.activation.weaklyOutputActiveVec[1],T3.activation.fed[1],T3.activation.active,T3.activation.weaklyInputActiveVec[1],T3.activation.weaklyOutputActiveVec[1],$PRE.P1.fireIn[1],P1.fireIn[1],$PRE.P1.fireOut[1],P1.fireOut[1],$PRE.P1.fireOut[2],P1.fireOut[2],P2.fireIn[1],P3.fireIn[1],T2.activation.arcType[1],T3.activation.arcType[1],T3.activation.emptied[1],T2.activation.emptied[1],T3.outPlaces[1].enabledByInPlaces,T2.outPlaces[1].enabledByInPlaces,T1.outPlaces[1].enabledByInPlaces) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0007234/0.05541, allocations: 464.9 kB / 49.07 MB, free: 5.215 MB / 18.57 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001175/0.05554, allocations: 47.11 kB / 49.12 MB, free: 5.215 MB / 18.57 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00185/0.0574, allocations: 1.227 MB / 50.34 MB, free: 5.066 MB / 18.57 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.228e-05/0.05745, allocations: 15.7 kB / 50.36 MB, free: 5.066 MB / 18.57 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.05746, allocations: 5.531 kB / 50.36 MB, free: 5.066 MB / 18.57 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.217e-06/0.05747, allocations: 3.891 kB / 50.37 MB, free: 5.066 MB / 18.57 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00254/0.06002, allocations: 2.01 MB / 52.38 MB, free: 3.918 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.06004, allocations: 0 / 52.38 MB, free: 3.918 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001914/0.06024, allocations: 51.72 kB / 52.43 MB, free: 3.871 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001006/0.06125, allocations: 384.3 kB / 52.8 MB, free: 3.504 MB / 18.57 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.14e-05/0.06132, allocations: 23.98 kB / 52.83 MB, free: 3.48 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007303/0.06205, allocations: 0.9313 MB / 53.76 MB, free: 2.535 MB / 18.57 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.06207, allocations: 3.938 kB / 53.76 MB, free: 2.531 MB / 18.57 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001992/0.06406, allocations: 1.717 MB / 55.48 MB, free: 0.8047 MB / 18.57 MB Notification: Performance of postOpt removeConstants (simulation): time 9.09e-05/0.06417, allocations: 122.6 kB / 55.6 MB, free: 0.6953 MB / 18.57 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.514e-05/0.06427, allocations: 27.98 kB / 55.63 MB, free: 0.668 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002471/0.06453, allocations: 57.05 kB / 55.68 MB, free: 0.6172 MB / 18.57 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002541/0.06479, allocations: 148.2 kB / 55.83 MB, free: 484 kB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.255e-05/0.06486, allocations: 30.5 kB / 55.86 MB, free: 456 kB / 18.57 MB Notification: Performance of sorting global known variables: time 0.009844/0.07471, allocations: 215.1 kB / 56.07 MB, free: 5.246 MB / 18.57 MB Notification: Performance of sort global known variables: time 6.02e-07/0.07474, allocations: 0 / 56.07 MB, free: 5.246 MB / 18.57 MB Notification: Performance of remove unused functions: time 0.001028/0.07577, allocations: 269.3 kB / 56.33 MB, free: 5.234 MB / 18.57 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (P1.t_,P2.t_,P3.t_) * Number of discrete variables: 18 (T1.activation.emptied[1],T1.activation.active,T1.activation.weaklyOutputActiveVec[1],T2.activation.fed[1],T2.activation.active,T2.activation.weaklyInputActiveVec[1],T2.activation.weaklyOutputActiveVec[1],T3.activation.fed[1],T3.activation.active,T3.activation.weaklyInputActiveVec[1],T3.activation.weaklyOutputActiveVec[1],P1.fireIn[1],P1.fireOut[1],P1.fireOut[2],P2.fireIn[1],P2.feeding,P3.fireIn[1],P3.feeding) * Number of discrete states: 13 (P1.fireIn[1],T3.activation.weaklyOutputActiveVec[1],T3.activation.weaklyInputActiveVec[1],T3.activation.active,T2.activation.weaklyOutputActiveVec[1],T2.activation.weaklyInputActiveVec[1],T2.activation.active,P1.fireOut[1],P1.fireOut[2],T1.activation.weaklyOutputActiveVec[1],T1.activation.active,P2.fireIn[1],P3.fireIn[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003092/0.07888, allocations: 2.376 MB / 58.71 MB, free: 4.414 MB / 18.57 MB Notification: Performance of simCode: created initialization part: time 0.001616/0.08051, allocations: 1.188 MB / 59.89 MB, free: 3.781 MB / 18.57 MB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.08053, allocations: 0 / 59.89 MB, free: 3.781 MB / 18.57 MB Notification: Performance of simCode: created simulation system equations: time 0.0007375/0.08128, allocations: 0.7002 MB / 60.59 MB, free: 3.125 MB / 18.57 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004555/0.08174, allocations: 72.11 kB / 60.66 MB, free: 3.062 MB / 18.57 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0178/0.09956, allocations: 6.958 MB / 67.62 MB, free: 2.766 MB / 18.57 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008013/0.1004, allocations: 1.096 MB / 68.72 MB, free: 8.219 MB / 24.88 MB Notification: Performance of simCode: alias equations: time 0.0003003/0.1007, allocations: 147.6 kB / 68.86 MB, free: 8.09 MB / 24.88 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003069/0.101, allocations: 271.6 kB / 69.13 MB, free: 7.828 MB / 24.88 MB Notification: Performance of SimCode: time 5.81e-07/0.1011, allocations: 0 / 69.13 MB, free: 7.828 MB / 24.88 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04695/0.148, allocations: 14.67 MB / 83.79 MB, free: 5.52 MB / 24.88 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001666/0.1482, allocations: 197.6 kB / 83.99 MB, free: 5.262 MB / 24.88 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.67/2.818, allocations: 4 kB / 83.99 MB, free: 5.258 MB / 24.88 MB (rm -f ConPNlib_ConPNlib.Examples.Test12.pipe ; mkfifo ConPNlib_ConPNlib.Examples.Test12.pipe ; head -c 1048576 < ConPNlib_ConPNlib.Examples.Test12.pipe >> ../files/ConPNlib_ConPNlib.Examples.Test12.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ConPNlib_ConPNlib_Examples_Test12_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ConPNlib_ConPNlib_Examples_Test12.fmu > ConPNlib_ConPNlib.Examples.Test12.pipe 2>&1)