Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008941/0.0008939, allocations: 100 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009105/0.0009105, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.457/1.457, allocations: 223.2 MB / 239.9 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.569/2.569, allocations: 390.3 MB / 0.6653 GB, free: 3.027 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004764/0.0004767, allocations: 8 kB / 0.8146 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8873/0.8878, allocations: 142.3 MB / 0.9536 GB, free: 8.086 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.003025/0.8909, allocations: 2.56 MB / 0.9561 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002391/0.8933, allocations: 1.586 MB / 0.9576 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001633/0.8935, allocations: 6.688 kB / 0.9577 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001638/0.8937, allocations: 34.58 kB / 0.9577 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004256/0.8941, allocations: 132.2 kB / 0.9578 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005189/0.8946, allocations: 188.7 kB / 0.958 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003236/0.895, allocations: 228.1 kB / 0.9582 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007252/0.8957, allocations: 375.8 kB / 0.9586 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002139/0.8959, allocations: 117.1 kB / 0.9587 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002415/0.8962, allocations: 132.2 kB / 0.9588 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.446e-05/0.8962, allocations: 13.94 kB / 0.9588 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002775/0.8965, allocations: 139.8 kB / 0.9589 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.253e-05/0.8966, allocations: 80.66 kB / 0.959 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.983e-05/0.8967, allocations: 70.2 kB / 0.9591 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003611/0.8971, allocations: 339.5 kB / 0.9594 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.8971, allocations: 0 / 0.9594 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.356e-06/0.8971, allocations: 0 / 0.9594 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.62e-06/0.8971, allocations: 0 / 0.9594 GB, free: 3.641 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001044/0.8981, allocations: 0.6173 MB / 0.96 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.8982, allocations: 9.656 kB / 0.96 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.612e-05/0.8983, allocations: 54.14 kB / 0.9601 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007277/0.899, allocations: 105.7 kB / 0.9602 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003188/0.8993, allocations: 268.4 kB / 0.9604 GB, free: 2.711 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.142e-05/0.8994, allocations: 16.77 kB / 0.9605 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.405e-05/0.8994, allocations: 22.59 kB / 0.9605 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007698/0.9002, allocations: 426.2 kB / 0.9609 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.515e-05/0.9002, allocations: 1 kB / 0.9609 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.635e-05/0.9003, allocations: 14.16 kB / 0.9609 GB, free: 2.41 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.216e-05/0.9003, allocations: 26.77 kB / 0.9609 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009441/0.9013, allocations: 419.1 kB / 0.9613 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001678/0.903, allocations: 1.611 MB / 0.9629 GB, free: 0.7305 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001087/0.9041, allocations: 490.2 kB / 0.9634 GB, free: 480 kB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001293/0.9042, allocations: 88.22 kB / 0.9634 GB, free: 380 kB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005245/0.9047, allocations: 280.7 kB / 0.9637 GB, free: 188 kB / 0.7169 GB Notification: Performance of pre-optimization done (n=27): time 1.774e-06/0.9047, allocations: 0.7812 kB / 0.9637 GB, free: 188 kB / 0.7169 GB Notification: Performance of matching and sorting (n=28): time 0.001903/0.9067, allocations: 0.7811 MB / 0.9645 GB, free: 15.72 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.749e-05/0.9067, allocations: 88.67 kB / 0.9646 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000236/0.907, allocations: 230.5 kB / 0.9648 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.939e-05/0.907, allocations: 31.36 kB / 0.9648 GB, free: 15.41 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000118/0.9071, allocations: 160.9 kB / 0.965 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 8.079e-05/0.9072, allocations: 95.58 kB / 0.9651 GB, free: 15.18 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.215e-05/0.9073, allocations: 4.969 kB / 0.9651 GB, free: 15.18 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001323/0.9074, allocations: 341 kB / 0.9654 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004323/0.9078, allocations: 181.4 kB / 0.9656 GB, free: 14.76 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004635/0.9083, allocations: 249.3 kB / 0.9658 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005002/0.9088, allocations: 242.5 kB / 0.966 GB, free: 14.46 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.9088, allocations: 1.031 kB / 0.966 GB, free: 14.46 MB / 0.7325 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001203/0.91, allocations: 0.5526 MB / 0.9666 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004146/0.9105, allocations: 0.9018 MB / 0.9674 GB, free: 13.19 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.9105, allocations: 2.031 kB / 0.9675 GB, free: 13.19 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002414/0.9107, allocations: 45.69 kB / 0.9675 GB, free: 13.16 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004111/0.9111, allocations: 90.95 kB / 0.9676 GB, free: 13.14 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001503/0.9127, allocations: 1.508 MB / 0.9691 GB, free: 11.65 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003474/0.913, allocations: 46.7 kB / 0.9691 GB, free: 11.63 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.272e-05/0.9131, allocations: 18.64 kB / 0.9691 GB, free: 11.62 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 8.856e-06/0.9131, allocations: 4.188 kB / 0.9691 GB, free: 11.62 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001126/0.9142, allocations: 0.5002 MB / 0.9696 GB, free: 11.36 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.9142, allocations: 6.609 kB / 0.9696 GB, free: 11.36 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001387/0.9144, allocations: 40.64 kB / 0.9697 GB, free: 11.33 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003747/0.9148, allocations: 93.47 kB / 0.9697 GB, free: 11.3 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001256/0.916, allocations: 1.5 MB / 0.9712 GB, free: 9.82 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000315/0.9164, allocations: 49.62 kB / 0.9713 GB, free: 9.797 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.572e-05/0.9164, allocations: 22.09 kB / 0.9713 GB, free: 9.785 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.load.T_start,load.T_start,$PRE.load.count,load.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002908/0.9167, allocations: 229.7 kB / 0.9715 GB, free: 9.57 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.945e-05/0.9168, allocations: 24.5 kB / 0.9715 GB, free: 9.559 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001102/0.9179, allocations: 0.49 MB / 0.972 GB, free: 9.281 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.9179, allocations: 7.609 kB / 0.972 GB, free: 9.277 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.9179, allocations: 1.344 kB / 0.972 GB, free: 9.277 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.9179, allocations: 5.359 kB / 0.972 GB, free: 9.273 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007081/0.9186, allocations: 0.5674 MB / 0.9726 GB, free: 8.762 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.9186, allocations: 1.094 kB / 0.9726 GB, free: 8.762 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003861/0.919, allocations: 82.84 kB / 0.9726 GB, free: 8.734 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000129/0.9192, allocations: 38.58 kB / 0.9727 GB, free: 8.711 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.722e-05/0.9192, allocations: 14.55 kB / 0.9727 GB, free: 8.699 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001172/0.9204, allocations: 1.419 MB / 0.9741 GB, free: 7.281 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.9204, allocations: 5.219 kB / 0.9741 GB, free: 7.277 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001109/0.9215, allocations: 0.5911 MB / 0.9747 GB, free: 6.871 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001714/0.9217, allocations: 138.9 kB / 0.9748 GB, free: 6.734 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.968e-05/0.9217, allocations: 10.31 kB / 0.9748 GB, free: 6.727 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000325/0.9221, allocations: 47.84 kB / 0.9749 GB, free: 6.703 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001015/0.9222, allocations: 37.91 kB / 0.9749 GB, free: 6.68 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.796e-05/0.9222, allocations: 7.406 kB / 0.9749 GB, free: 6.68 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001841/0.9224, allocations: 171.1 kB / 0.9751 GB, free: 6.559 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.2e-07/0.9224, allocations: 0 / 0.9751 GB, free: 6.559 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0006587/0.9231, allocations: 129 kB / 0.9752 GB, free: 6.543 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,load.T_start,load.count) * Number of discrete states: 1 (load.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001639/0.9247, allocations: 1.356 MB / 0.9765 GB, free: 5.391 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.002119/0.9269, allocations: 1.007 MB / 0.9775 GB, free: 4.727 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.9269, allocations: 1.094 kB / 0.9775 GB, free: 4.727 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0006691/0.9276, allocations: 346.7 kB / 0.9778 GB, free: 4.508 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003441/0.9279, allocations: 41.8 kB / 0.9779 GB, free: 4.484 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004158/0.9321, allocations: 3.316 MB / 0.9811 GB, free: 1.816 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003957/0.9325, allocations: 0.7935 MB / 0.9819 GB, free: 1.066 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0003299/0.9328, allocations: 90.36 kB / 0.982 GB, free: 1.031 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001666/0.933, allocations: 90.22 kB / 0.982 GB, free: 0.9609 MB / 0.7325 GB Notification: Performance of SimCode: time 1.022e-06/0.933, allocations: 3.938 kB / 0.9821 GB, free: 0.957 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01898/0.952, allocations: 6.557 MB / 0.9885 GB, free: 11.33 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001842/0.9522, allocations: 222.6 kB / 0.9887 GB, free: 11.09 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.869/2.821, allocations: 2.25 kB / 0.9887 GB, free: 11.09 MB / 0.7481 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource_res.mat does not exist to compare? outputFormat=mat